pub enum AnySlice<'a> {
Show 25 variants
Text(TextColumnView<'a, u8>),
WText(TextColumnView<'a, u16>),
Binary(BinColumnView<'a>),
Date(&'a [Date]),
Time(&'a [Time]),
Timestamp(&'a [Timestamp]),
F64(&'a [f64]),
F32(&'a [f32]),
I8(&'a [i8]),
I16(&'a [i16]),
I32(&'a [i32]),
I64(&'a [i64]),
U8(&'a [u8]),
Bit(&'a [Bit]),
NullableDate(NullableSlice<'a, Date>),
NullableTime(NullableSlice<'a, Time>),
NullableTimestamp(NullableSlice<'a, Timestamp>),
NullableF64(NullableSlice<'a, f64>),
NullableF32(NullableSlice<'a, f32>),
NullableI8(NullableSlice<'a, i8>),
NullableI16(NullableSlice<'a, i16>),
NullableI32(NullableSlice<'a, i32>),
NullableI64(NullableSlice<'a, i64>),
NullableU8(NullableSlice<'a, u8>),
NullableBit(NullableSlice<'a, Bit>),
}
Expand description
A borrowed view on the valid rows in a column of a crate::buffers::ColumnarBuffer
.
For columns of fixed size types, which are guaranteed to not contain null, a direct access to the slice is offered. Buffers over nullable columns can be accessed via an iterator over options.
Variants§
Text(TextColumnView<'a, u8>)
Nullable character data in the system encoding.
WText(TextColumnView<'a, u16>)
Nullable character data encoded in UTF-16.
Binary(BinColumnView<'a>)
Date(&'a [Date])
Time(&'a [Time])
Timestamp(&'a [Timestamp])
F64(&'a [f64])
F32(&'a [f32])
I8(&'a [i8])
I16(&'a [i16])
I32(&'a [i32])
I64(&'a [i64])
U8(&'a [u8])
Bit(&'a [Bit])
NullableDate(NullableSlice<'a, Date>)
NullableTime(NullableSlice<'a, Time>)
NullableTimestamp(NullableSlice<'a, Timestamp>)
NullableF64(NullableSlice<'a, f64>)
NullableF32(NullableSlice<'a, f32>)
NullableI8(NullableSlice<'a, i8>)
NullableI16(NullableSlice<'a, i16>)
NullableI32(NullableSlice<'a, i32>)
NullableI64(NullableSlice<'a, i64>)
NullableU8(NullableSlice<'a, u8>)
NullableBit(NullableSlice<'a, Bit>)
Implementations§
Source§impl<'a> AnySlice<'a>
impl<'a> AnySlice<'a>
Sourcepub fn as_text_view(self) -> Option<TextColumnView<'a, u8>>
pub fn as_text_view(self) -> Option<TextColumnView<'a, u8>>
This method is useful if you expect the variant to be AnySlice::Text
. It allows you to
unwrap the inner column view without explictly matching it.
Sourcepub fn as_w_text_view(self) -> Option<TextColumnView<'a, u16>>
pub fn as_w_text_view(self) -> Option<TextColumnView<'a, u16>>
This method is useful if you expect the variant to be AnySlice::WText
. It allows you to
unwrap the inner column view without explictly matching it.
Sourcepub fn as_bin_view(self) -> Option<BinColumnView<'a>>
pub fn as_bin_view(self) -> Option<BinColumnView<'a>>
This method is useful if you expect the variant to be AnySlice::Binary
. It allows you to
unwrap the inner column view without explictly matching it.
Sourcepub fn as_nullable_slice<I: Item>(self) -> Option<NullableSlice<'a, I>>
pub fn as_nullable_slice<I: Item>(self) -> Option<NullableSlice<'a, I>>
Extract the typed nullable buffer from an AnySlice
.