Trait mz_persist_types::columnar::ColumnGet

source ·
pub trait ColumnGet<T: Data>: ColumnRef<T::Cfg> {
    // Required method
    fn get<'a>(&'a self, idx: usize) -> T::Ref<'a>;
}
Expand description

A type that may be retrieved from a column of [T].

Required Methods§

source

fn get<'a>(&'a self, idx: usize) -> T::Ref<'a>

Retrieves the value at index.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ColumnGet<Option<bool>> for BooleanArray

source§

fn get<'a>(&'a self, idx: usize) -> Option<bool>

source§

impl ColumnGet<Option<f32>> for PrimitiveArray<Float32Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<f32>

source§

impl ColumnGet<Option<f64>> for PrimitiveArray<Float64Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<f64>

source§

impl ColumnGet<Option<i8>> for PrimitiveArray<Int8Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<i8>

source§

impl ColumnGet<Option<i16>> for PrimitiveArray<Int16Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<i16>

source§

impl ColumnGet<Option<i32>> for PrimitiveArray<Int32Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<i32>

source§

impl ColumnGet<Option<i64>> for PrimitiveArray<Int64Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<i64>

source§

impl ColumnGet<Option<u8>> for PrimitiveArray<UInt8Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<u8>

source§

impl ColumnGet<Option<u16>> for PrimitiveArray<UInt16Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<u16>

source§

impl ColumnGet<Option<u32>> for PrimitiveArray<UInt32Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<u32>

source§

impl ColumnGet<Option<u64>> for PrimitiveArray<UInt64Type>

source§

fn get<'a>(&'a self, idx: usize) -> Option<u64>

source§

impl ColumnGet<Option<String>> for StringArray

source§

fn get<'a>(&'a self, idx: usize) -> Option<&'a str>

source§

impl ColumnGet<Option<Vec<u8>>> for BinaryArray

source§

fn get<'a>(&'a self, idx: usize) -> Option<&'a [u8]>

source§

impl ColumnGet<Option<OpaqueData>> for BinaryArray

source§

fn get<'a>(&'a self, idx: usize) -> <Option<OpaqueData> as Data>::Ref<'a>

source§

impl ColumnGet<bool> for BooleanBuffer

source§

fn get<'a>(&'a self, idx: usize) -> bool

source§

impl ColumnGet<f32> for PrimitiveArray<Float32Type>

source§

fn get<'a>(&'a self, idx: usize) -> f32

source§

impl ColumnGet<f64> for PrimitiveArray<Float64Type>

source§

fn get<'a>(&'a self, idx: usize) -> f64

source§

impl ColumnGet<i8> for PrimitiveArray<Int8Type>

source§

fn get<'a>(&'a self, idx: usize) -> i8

source§

impl ColumnGet<i16> for PrimitiveArray<Int16Type>

source§

fn get<'a>(&'a self, idx: usize) -> i16

source§

impl ColumnGet<i32> for PrimitiveArray<Int32Type>

source§

fn get<'a>(&'a self, idx: usize) -> i32

source§

impl ColumnGet<i64> for PrimitiveArray<Int64Type>

source§

fn get<'a>(&'a self, idx: usize) -> i64

source§

impl ColumnGet<u8> for PrimitiveArray<UInt8Type>

source§

fn get<'a>(&'a self, idx: usize) -> u8

source§

impl ColumnGet<u16> for PrimitiveArray<UInt16Type>

source§

fn get<'a>(&'a self, idx: usize) -> u16

source§

impl ColumnGet<u32> for PrimitiveArray<UInt32Type>

source§

fn get<'a>(&'a self, idx: usize) -> u32

source§

impl ColumnGet<u64> for PrimitiveArray<UInt64Type>

source§

fn get<'a>(&'a self, idx: usize) -> u64

source§

impl ColumnGet<String> for StringArray

source§

fn get<'a>(&'a self, idx: usize) -> &'a str

source§

impl ColumnGet<Vec<u8>> for BinaryArray

source§

fn get<'a>(&'a self, idx: usize) -> &'a [u8]

source§

impl ColumnGet<OpaqueData> for BinaryArray

source§

fn get<'a>(&'a self, idx: usize) -> <OpaqueData as Data>::Ref<'a>

Implementors§