pub struct Canonical {
pub ty: Type,
pub nullable: bool,
pub nones: Option<NoneBitmap>,
pub buffer: ColumnBuffer,
/* private fields */
}Fields§
§ty: Type§nullable: bool§nones: Option<NoneBitmap>§buffer: ColumnBufferImplementations§
Source§impl Canonical
impl Canonical
pub fn new( ty: Type, nullable: bool, nones: Option<NoneBitmap>, buffer: ColumnBuffer, ) -> Self
pub fn from_buffer(b: ColumnBuffer) -> Self
pub fn from_column_buffer(cd: &ColumnBuffer) -> Result<Self>
pub fn into_buffer(self) -> ColumnBuffer
pub fn to_buffer(&self) -> ColumnBuffer
pub fn to_column_buffer(&self) -> Result<ColumnBuffer>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn stats(&self) -> &StatsSet
Trait Implementations§
Source§impl ColumnData for Canonical
impl ColumnData for Canonical
fn ty(&self) -> Type
fn is_nullable(&self) -> bool
fn len(&self) -> usize
fn encoding(&self) -> EncodingId
fn stats(&self) -> &StatsSet
fn nones(&self) -> Option<&NoneBitmap>
fn get_value(&self, idx: usize) -> Value
fn as_string(&self, idx: usize) -> String
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn children(&self) -> &[Column]
fn metadata(&self) -> &dyn Any
fn to_canonical(&self) -> Result<Arc<Canonical>>
fn is_empty(&self) -> bool
fn is_defined(&self, idx: usize) -> bool
fn iter(&self) -> Box<dyn Iterator<Item = Value> + '_>
fn filter(&self, mask: &RowMask) -> Result<Column>
fn take(&self, indices: &Column) -> Result<Column>
fn slice(&self, start: usize, end: usize) -> Result<Column>
Auto Trait Implementations§
impl Freeze for Canonical
impl RefUnwindSafe for Canonical
impl Send for Canonical
impl Sync for Canonical
impl Unpin for Canonical
impl UnsafeUnpin for Canonical
impl UnwindSafe for Canonical
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more