Scalars#

A scalar is a single atomic value like the integer 1, the string "hello", or the structure {"age": 55, "name": "Angela"}. The Array.scalar_at() method returns a native Python value when the cost of doing so is small. However, for larger values like binary data, UTF-8 strings, variable-length lists, and structures, Vortex returns a zero-copy view of the Array data. The into_python method of each view will copy the scalar into a native Python value.

Buffer

A view of binary data from a Vortex array.

BufferString

A view of UTF-8 data from a Vortex array.

VortexList

A view of a variable-length list of data from a Vortex array.

VortexStruct

A view of structured data from a Vortex array.


class vortex.scalar.Buffer#

A view of binary data from a Vortex array.

into_python(*, recursive=False)#

Copy this buffer from array memory into a Python bytes.

class vortex.scalar.BufferString#

A view of UTF-8 data from a Vortex array.

into_python(*, recursive=False)#

Copy this buffer string from array memory into a str.

class vortex.scalar.VortexList#

A view of a variable-length list of data from a Vortex array.

into_python(*, recursive=False)#

Copy the elements of this list from array memory into a list.

class vortex.scalar.VortexStruct#

A view of structured data from a Vortex array.

into_python(*, recursive=False)#

Copy the elements of this list from array memory into a dict.