#[non_exhaustive]pub enum ColumnView<'a> {
Show 23 variants
Boolean(FixedColumn<'a, u8>),
Byte(FixedColumn<'a, i8>),
Short(FixedColumn<'a, i16>),
Int(FixedColumn<'a, i32>),
Long(FixedColumn<'a, i64>),
Float(FixedColumn<'a, f32>),
Double(FixedColumn<'a, f64>),
Symbol(SymbolColumn<'a>),
Timestamp(FixedColumn<'a, i64>),
Date(FixedColumn<'a, i64>),
Uuid(UuidColumn<'a>),
Long256(Long256Column<'a>),
TimestampNanos(FixedColumn<'a, i64>),
Decimal64(Decimal64Column<'a>),
Char(FixedColumn<'a, u16>),
Ipv4(FixedColumn<'a, u32>),
Varchar(VarcharColumn<'a>),
Binary(BinaryColumn<'a>),
Geohash(GeohashColumn<'a>),
Decimal128(Decimal128Column<'a>),
Decimal256(Decimal256Column<'a>),
DoubleArray(DoubleArrayColumn<'a>),
LongArray(LongArrayColumn<'a>),
}Expand description
Typed view over a single column in a RESULT_BATCH.
Covers every column kind the QWP egress decoder produces today: fixed-width numerics and temporals, UUID, Long256, Char, Symbol, Decimal64/128/256, Geohash, Varchar, Binary, and DOUBLE_ARRAY / LONG_ARRAY.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean(FixedColumn<'a, u8>)
Byte(FixedColumn<'a, i8>)
Short(FixedColumn<'a, i16>)
Int(FixedColumn<'a, i32>)
Long(FixedColumn<'a, i64>)
Float(FixedColumn<'a, f32>)
Double(FixedColumn<'a, f64>)
Symbol(SymbolColumn<'a>)
Timestamp(FixedColumn<'a, i64>)
Microsecond-precision timestamp (i64 LE).
Date(FixedColumn<'a, i64>)
Millisecond-precision date (i64 LE).
Uuid(UuidColumn<'a>)
Long256(Long256Column<'a>)
TimestampNanos(FixedColumn<'a, i64>)
Nanosecond-precision timestamp (i64 LE).
Decimal64(Decimal64Column<'a>)
Char(FixedColumn<'a, u16>)
QuestDB CHAR is a 2-byte UTF-16 code unit.
Ipv4(FixedColumn<'a, u32>)
IPv4 address as a host-order u32 (server emits LE).
Varchar(VarcharColumn<'a>)
Binary(BinaryColumn<'a>)
Geohash(GeohashColumn<'a>)
Decimal128(Decimal128Column<'a>)
Decimal256(Decimal256Column<'a>)
DoubleArray(DoubleArrayColumn<'a>)
LongArray(LongArrayColumn<'a>)
Implementations§
Source§impl<'a> ColumnView<'a>
impl<'a> ColumnView<'a>
pub fn kind(&self) -> ColumnKind
Sourcepub fn as_decimal(&self) -> Option<DecimalColumn<'a>>
pub fn as_decimal(&self) -> Option<DecimalColumn<'a>>
Project any DECIMAL64/128/256 variant to one width-agnostic view.
The returned view borrows the same decoded buffers and performs no
conversion or copy. Returns None for non-decimal columns.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_null(&self, row: usize) -> bool
pub fn validity<'b>(&'b self) -> Validity<'b>
Trait Implementations§
Source§impl<'a> Clone for ColumnView<'a>
impl<'a> Clone for ColumnView<'a>
Source§fn clone(&self) -> ColumnView<'a>
fn clone(&self) -> ColumnView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ColumnView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColumnView<'a>
impl<'a> RefUnwindSafe for ColumnView<'a>
impl<'a> Send for ColumnView<'a>
impl<'a> Sync for ColumnView<'a>
impl<'a> Unpin for ColumnView<'a>
impl<'a> UnsafeUnpin for ColumnView<'a>
impl<'a> UnwindSafe for ColumnView<'a>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more