PropertiesColumnAccessor

Trait PropertiesColumnAccessor 

Source
pub trait PropertiesColumnAccessor: Send + Debug {
    // Required methods
    fn jsonb_value(&self, index: usize) -> Result<Vec<u8>, Error>;
    fn len(&self) -> usize;
    fn is_null(&self, index: usize) -> bool;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Trait for accessing properties columns in a format-agnostic way.

This trait provides unified access to properties data regardless of the underlying Arrow format - either JSONB dictionary format (Dictionary(Int32, Binary)) or legacy struct array format (GenericListArray<StructArray>).

All methods return JSONB bytes for consistent processing downstream.

Required Methods§

Source

fn jsonb_value(&self, index: usize) -> Result<Vec<u8>, Error>

Get JSONB bytes for properties at the given index.

For JSONB format: Returns the raw JSONB bytes directly. For struct array format: Converts struct array to JSONB on-the-fly.

Source

fn len(&self) -> usize

Get the number of rows in this column.

Source

fn is_null(&self, index: usize) -> bool

Check if the value at the given index is null.

Provided Methods§

Source

fn is_empty(&self) -> bool

Check if this column is empty.

Implementors§