Array#
- class rbc.heavydb.Array(size, dtype)#
RBC
Array<T>
type that corresponds to HeavyDB ARRAYIn HeavyDB, an Array of type
T
is represented as follows:{ T* data, int64_t size, int8_t is_null }
Array holds a contiguous block of memory and it implements a subset of the array protocol.
Example
from numba import types from rbc.heavydb import Array @heavydb('int64[](int64)') def my_arange(size): arr = Array(size, nb_types.int64) for i in range(size): a[i] = i return a
Attributes
❌ Not implemented
❌ Not implemented
Data type of the array elements.
❌ Not implemented
Number of array dimensions (axes).
❌ Not implemented
Number of elements in an array.
Methods
Array.__init__
(size, dtype)Array.is_null
(index)Check if array is null.
Array.set_null
(index)Set the array to null.
Returns a Python list with elements from the array
- Parameters:
size (int) –
dtype (str | Type) –