Trait ArrayVisitor

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

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 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 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.

Implementations on Foreign Types§

Source§

impl ArrayVisitor for Arc<dyn Array>

Implementors§