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§
Sourcefn nth_child(&self, idx: usize) -> Option<ArrayRef>
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.
Sourcefn children_names(&self) -> Vec<String>
fn children_names(&self) -> Vec<String>
Returns the names of the children of the array.
Sourcefn named_children(&self) -> Vec<(String, ArrayRef)>
fn named_children(&self) -> Vec<(String, ArrayRef)>
Returns the array’s children with their names.
Sourcefn buffers(&self) -> Vec<ByteBuffer> ⓘ
fn buffers(&self) -> Vec<ByteBuffer> ⓘ
Returns the buffers of the array.
Sourcefn buffer_handles(&self) -> Vec<BufferHandle>
fn buffer_handles(&self) -> Vec<BufferHandle>
Returns the buffer handles of the array.
Sourcefn buffer_names(&self) -> Vec<String>
fn buffer_names(&self) -> Vec<String>
Returns the names of the buffers of the array.
Sourcefn named_buffers(&self) -> Vec<(String, BufferHandle)>
fn named_buffers(&self) -> Vec<(String, BufferHandle)>
Returns the array’s buffers with their names.
Sourcefn metadata(&self) -> VortexResult<Option<Vec<u8>>>
fn metadata(&self) -> VortexResult<Option<Vec<u8>>>
Returns the serialized metadata of the array, or None if the array does not
support serialization.
Sourcefn metadata_fmt(&self, f: &mut Formatter<'_>) -> Result
fn metadata_fmt(&self, f: &mut Formatter<'_>) -> Result
Formats a human-readable metadata description.