SparkseePython
6.0.2
|
ValueArray class. More...
Public Member Functions | |
def | set (self, index, value) |
Set a Value to a specific array position. More... | |
def | get_integer (self) |
Get all the values from this int array. More... | |
def | get_long (self) |
Get all the values from this long array. More... | |
def | set_timestamp (self, values) |
Set all the values of this timestamp array. More... | |
def | set_oid (self, values) |
Set all the values of this oid array. More... | |
def | get_oid (self) |
Get all the values from this oid array. More... | |
def | get (self, index, value) |
Get a Value from the array. More... | |
def | get_timestamp (self) |
Get all the values from this timestamp array. More... | |
def | get_double_range (self, index, size) |
Get a subset of the values from this double array. More... | |
def | get_integer_range (self, index, size) |
Get a subset of the values from this integer array. More... | |
def | get_boolean (self) |
Get all the values from this bool array. More... | |
def | set_boolean (self, values) |
Set all the values of this bool array. More... | |
def | set_double_range (self, index, values) |
Set a subset of the values from this double array. More... | |
def | size (self) |
Returns the array size. | |
def | get_long_range (self, index, size) |
Get a subset of the values from this long array. More... | |
def | set_timestamp_range (self, index, values) |
Set a subset of the values from this timestamp array. More... | |
def | make_null (self) |
Sets the attribute array to Null. More... | |
def | set_integer_range (self, index, values) |
Set a subset of the values from this integer array. More... | |
def | get_oid_range (self, index, size) |
Get a subset of the values from this oid array. More... | |
def | set_boolean_range (self, index, values) |
Set a subset of the values from this boolean array. More... | |
def | set_oid_range (self, index, values) |
Set a subset of the values from this oid array. More... | |
def | get_double (self) |
Get all the values from this double array. More... | |
def | set_long (self, values) |
Set all the values of this long array. More... | |
def | set_double (self, values) |
Set all the values of this double array. More... | |
def | set_integer (self, values) |
Set all the values of this int array. More... | |
def | set_long_range (self, index, values) |
Set a subset of the values from this long array. More... | |
def | set (self, value) |
Set a Value to the whole array. More... | |
def | get_boolean_range (self, index, size) |
Get a subset of the values from this boolean array. More... | |
def | get_timestamp_range (self, index, size) |
Get a subset of the values from this timestamp array. More... | |
ValueArray class.
It allows for getting and setting ValueArray attribute values.
It is very important to close the ValueArray once no more get or set operations will be performed.
Creation of a new ValueArray: (i) Set all the ValueArray elements using Graph::SetAttributeArray (ii) perform as many get/set operations as you need to the ValueArray instance. Lastly, (iii) Close the ValueArray
Use of an existing ValueArray: (i) Get a ValueArray instance using Graph::GetAttributeArray (ii) perform as many get/set operations as you need to the ValueArray instance. Lastly, (iii) Close the ValueArray
Check out the 'Attributes and values' section in the SPARKSEE User Manual for more details on this.
def sparksee.ValueArray.get | ( | self, | |
index, | |||
value | |||
) |
Get a Value from the array.
AppErrorIf the ValueArray is not available
index | [in] Position of the element to get [0..N-1] |
value | [out] Value to get the array element |
ValueError | If the index is out of range or the Value not valid |
RuntimeError | null |
def sparksee.ValueArray.get_boolean | ( | self | ) |
Get all the values from this bool array.
UnsupportedOperationErrorIf array DataType is not bool
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_boolean_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this boolean array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.get_double | ( | self | ) |
Get all the values from this double array.
UnsupportedOperationErrorIf array DataType is not Double
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_double_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this double array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.get_integer | ( | self | ) |
Get all the values from this int array.
UnsupportedOperationErrorIf array DataType is not int
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_integer_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this integer array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.get_long | ( | self | ) |
Get all the values from this long array.
UnsupportedOperationErrorIf array DataType is not long
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_long_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this long array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.get_oid | ( | self | ) |
Get all the values from this oid array.
UnsupportedOperationErrorIf array DataType is not oid
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_oid_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this oid array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.get_timestamp | ( | self | ) |
Get all the values from this timestamp array.
UnsupportedOperationErrorIf array DataType is not timestamp
RuntimeError | If the ValueArray is not available |
RuntimeError | null |
def sparksee.ValueArray.get_timestamp_range | ( | self, | |
index, | |||
size | |||
) |
Get a subset of the values from this timestamp array.
Returns all the requested values
index | [in] Position of the first element to get [0..N-1] |
size | [in] Number of elements to get [1..N] |
def sparksee.ValueArray.make_null | ( | self | ) |
Sets the attribute array to Null.
The ValueArray can not be used after this call.
RuntimeError | null |
def sparksee.ValueArray.set | ( | self, | |
index, | |||
value | |||
) |
Set a Value to a specific array position.
AppErrorIf the ValueArray is not available
index | [in] Position of the element to set [0..N-1] |
value | [in] Value to set in the array element |
ValueError | If the index is out of range or the Value not valid |
RuntimeError | null |
Referenced by sparksee.ValueArray.set().
def sparksee.ValueArray.set | ( | self, | |
value | |||
) |
Set a Value to the whole array.
AppErrorIf the ValueArray is not available
value | [in] Value to set in all the array elements |
ValueError | If the Value is not valid |
RuntimeError | null |
References sparksee.ValueArray.set().
def sparksee.ValueArray.set_boolean | ( | self, | |
values | |||
) |
Set all the values of this bool array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not bool |
def sparksee.ValueArray.set_boolean_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this boolean array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |
def sparksee.ValueArray.set_double | ( | self, | |
values | |||
) |
Set all the values of this double array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not Double |
def sparksee.ValueArray.set_double_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this double array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |
def sparksee.ValueArray.set_integer | ( | self, | |
values | |||
) |
Set all the values of this int array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not int |
def sparksee.ValueArray.set_integer_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this integer array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |
def sparksee.ValueArray.set_long | ( | self, | |
values | |||
) |
Set all the values of this long array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not long |
def sparksee.ValueArray.set_long_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this long array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |
def sparksee.ValueArray.set_oid | ( | self, | |
values | |||
) |
Set all the values of this oid array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not oid |
def sparksee.ValueArray.set_oid_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this oid array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |
def sparksee.ValueArray.set_timestamp | ( | self, | |
values | |||
) |
Set all the values of this timestamp array.
AppErrorIf the ValueArray is not available
values | [in] All the values to set |
RuntimeError | null |
RuntimeError | If array DataType is not timestamp |
def sparksee.ValueArray.set_timestamp_range | ( | self, | |
index, | |||
values | |||
) |
Set a subset of the values from this timestamp array.
index | [in] Position of the first element to get [0..N-1] |
values | [in] All the values to set |