pub enum ColumnChunk {
Fixed(ColumnChunkData),
Bool(BoolChunkData),
String(StringChunkData),
}Expand description
Type-erased column chunk wrapper.
Variants§
Implementations§
Source§impl ColumnChunk
impl ColumnChunk
Sourcepub fn new(data_type: LogicalType, capacity: u64) -> Self
pub fn new(data_type: LogicalType, capacity: u64) -> Self
Create the appropriate column chunk for a logical type.
pub fn data_type(&self) -> &LogicalType
pub fn num_values(&self) -> u64
pub fn capacity(&self) -> u64
pub fn is_null(&self, pos: u64) -> bool
pub fn set_null(&mut self, pos: u64, is_null: bool)
pub fn append_null(&mut self)
pub fn residency_state(&self) -> ResidencyState
Sourcepub fn set_raw(&mut self, pos: u64, bytes: &[u8])
pub fn set_raw(&mut self, pos: u64, bytes: &[u8])
Set raw bytes at a position. Only valid for Fixed chunks.
Sourcepub fn set_num_values(&mut self, n: u64)
pub fn set_num_values(&mut self, n: u64)
Set num_values directly (used when bulk-loading).
Auto Trait Implementations§
impl Freeze for ColumnChunk
impl RefUnwindSafe for ColumnChunk
impl Send for ColumnChunk
impl Sync for ColumnChunk
impl Unpin for ColumnChunk
impl UnsafeUnpin for ColumnChunk
impl UnwindSafe for ColumnChunk
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.