Trait DisplayIndexState

Source
trait DisplayIndexState<'a> {
    type State;

    // Required methods
    fn prepare(
        &self,
        options: &FormatOptions<'a>,
    ) -> Result<Self::State, ArrowError>;
    fn write(
        &self,
        state: &Self::State,
        idx: usize,
        f: &mut dyn Write,
    ) -> Result<(), FormatError>;
}
Expand description

DisplayIndex with additional state

Required Associated Types§

Required Methods§

Source

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source

fn write( &self, state: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Implementations on Foreign Types§

Source§

impl<'a> DisplayIndexState<'a> for &'a FixedSizeListArray

Source§

type State = (usize, Box<dyn DisplayIndex + 'a>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a MapArray

Source§

type State = (Box<dyn DisplayIndex + 'a>, Box<dyn DisplayIndex + 'a>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a NullArray

Source§

type State = &'a str

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, state: &Self::State, _idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Date32Type>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Date64Type>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Decimal128Type>

Source§

type State = (u8, i8)

Source§

fn prepare( &self, _options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Decimal256Type>

Source§

type State = (u8, i8)

Source§

fn prepare( &self, _options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<DurationMicrosecondType>

Source§

type State = DurationFormat

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<DurationMillisecondType>

Source§

type State = DurationFormat

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<DurationNanosecondType>

Source§

type State = DurationFormat

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<DurationSecondType>

Source§

type State = DurationFormat

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Time32MillisecondType>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Time32SecondType>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Time64MicrosecondType>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<Time64NanosecondType>

Source§

type State = Option<&'a str>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, fmt: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<TimestampMicrosecondType>

Source§

type State = (Option<Tz>, Option<&'a str>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<TimestampMillisecondType>

Source§

type State = (Option<Tz>, Option<&'a str>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<TimestampNanosecondType>

Source§

type State = (Option<Tz>, Option<&'a str>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a PrimitiveArray<TimestampSecondType>

Source§

type State = (Option<Tz>, Option<&'a str>)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a StructArray

Source§

type State = Vec<(&'a str, Box<dyn DisplayIndex + 'a>)>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a> DisplayIndexState<'a> for &'a UnionArray

Source§

type State = (Vec<Option<(&'a str, Box<dyn DisplayIndex + 'a>)>>, UnionMode)

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a, K: ArrowDictionaryKeyType> DisplayIndexState<'a> for &'a DictionaryArray<K>

Source§

type State = Box<dyn DisplayIndex + 'a>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a, K: RunEndIndexType> DisplayIndexState<'a> for &'a RunArray<K>

Source§

type State = Box<dyn DisplayIndex + 'a>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Source§

impl<'a, O: OffsetSizeTrait> DisplayIndexState<'a> for &'a GenericListArray<O>

Source§

type State = Box<dyn DisplayIndex + 'a>

Source§

fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>

Source§

fn write( &self, s: &Self::State, idx: usize, f: &mut dyn Write, ) -> Result<(), FormatError>

Implementors§