Pyvelox Vectors

class pyvelox.vector.Vector
__eq__(self: pyvelox.vector.Vector, arg0: pyvelox.vector.Vector) bool

Returns if two PyVectors have the same size and contents.

__getitem__(self: pyvelox.vector.Vector, arg0: int) str

Returns a the value of an element serialized as a string.

__hash__ = None
__init__(*args, **kwargs)
__len__(self: pyvelox.vector.Vector) int

Number of elements in the Vector.

__str__(self: pyvelox.vector.Vector) str

Returns a summarized description of the Vector and its type.

child_at(self: pyvelox.vector.Vector, arg0: int) pyvelox.vector.Vector

Returns the vector’s child at position idx. Throws if the vector is not a RowVector.

Args:

index: The index of the child element in the RowVector.

compare(self: pyvelox.vector.Vector, other: pyvelox.vector.Vector, index: int, other_index: int) int

Compares elements across Vectors.

Args:

index: Index on the current Vector to compare. other: Vector to compare to. other_index: Index on other to compare to.

Returns:

0 if elements are the same, non-zero otherwise.

is_null_at(self: pyvelox.vector.Vector, arg0: int) bool

If the Vector has a null element at idx.

Args:

index: The vector element to check.

null_count(self: pyvelox.vector.Vector) int

Number of null elements in the Vector.

print_all(self: pyvelox.vector.Vector) str

Returns a string containg all elements in the Vector.

print_detailed(self: pyvelox.vector.Vector) str

Returns a descriptive string containing details about the Vector and all its elements.

size(self: pyvelox.vector.Vector) int

Number of elements in the Vector.

summarize_to_text(self: pyvelox.vector.Vector) str

Returns a human-readable summarize of the Vector.

type(self: pyvelox.vector.Vector) facebook::velox::py::PyType

Returns the Type of the Vector.