Skip to main content

ArrayVisitor

Trait ArrayVisitor 

Source
pub trait ArrayVisitor {
Show 13 methods // Required methods fn children(&self) -> Vec<ArrayRef> ; fn nchildren(&self) -> usize; fn nth_child(&self, idx: usize) -> Option<ArrayRef>; fn children_names(&self) -> Vec<String>; fn named_children(&self) -> Vec<(String, ArrayRef)>; fn buffers(&self) -> Vec<ByteBuffer> ; fn buffer_handles(&self) -> Vec<BufferHandle>; fn buffer_names(&self) -> Vec<String>; fn named_buffers(&self) -> Vec<(String, BufferHandle)>; fn nbuffers(&self) -> usize; fn metadata(&self) -> VortexResult<Option<Vec<u8>>>; fn metadata_fmt(&self, f: &mut Formatter<'_>) -> Result; fn is_host(&self) -> bool;
}

Required Methods§

Source

fn children(&self) -> Vec<ArrayRef>

Returns the children of the array.

Source

fn nchildren(&self) -> usize

Returns the number of children of the array.

Source

fn nth_child(&self, idx: usize) -> Option<ArrayRef>

Returns the nth child of the array without allocating a Vec.

Returns None if the index is out of bounds.

Source

fn children_names(&self) -> Vec<String>

Returns the names of the children of the array.

Source

fn named_children(&self) -> Vec<(String, ArrayRef)>

Returns the array’s children with their names.

Source

fn buffers(&self) -> Vec<ByteBuffer>

Returns the buffers of the array.

Source

fn buffer_handles(&self) -> Vec<BufferHandle>

Returns the buffer handles of the array.

Source

fn buffer_names(&self) -> Vec<String>

Returns the names of the buffers of the array.

Source

fn named_buffers(&self) -> Vec<(String, BufferHandle)>

Returns the array’s buffers with their names.

Source

fn nbuffers(&self) -> usize

Returns the number of buffers of the array.

Source

fn metadata(&self) -> VortexResult<Option<Vec<u8>>>

Returns the serialized metadata of the array, or None if the array does not support serialization.

Source

fn metadata_fmt(&self, f: &mut Formatter<'_>) -> Result

Formats a human-readable metadata description.

Source

fn is_host(&self) -> bool

Checks if all buffers in the array tree are host-resident.

This will fail if any buffers of self or child arrays are GPU-resident.

Implementations on Foreign Types§

Source§

impl ArrayVisitor for Arc<dyn Array>

Implementors§