Trait LayoutEncoding

Source
pub trait LayoutEncoding:
    'static
    + Send
    + Sync
    + Debug
    + Sealed {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn id(&self) -> LayoutEncodingId;
    fn build(
        &self,
        dtype: &DType,
        row_count: u64,
        metadata: &[u8],
        segment_ids: Vec<SegmentId>,
        children: &dyn LayoutChildren,
    ) -> VortexResult<LayoutRef>;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn id(&self) -> LayoutEncodingId

Source

fn build( &self, dtype: &DType, row_count: u64, metadata: &[u8], segment_ids: Vec<SegmentId>, children: &dyn LayoutChildren, ) -> VortexResult<LayoutRef>

Implementations§

Source§

impl dyn LayoutEncoding + '_

Source

pub fn is<V: VTable>(&self) -> bool

Source

pub fn as_<V: VTable>(&self) -> &V::Encoding

Source

pub fn as_opt<V: VTable>(&self) -> Option<&V::Encoding>

Trait Implementations§

Source§

impl AsRef<dyn LayoutEncoding> for ChunkedLayoutEncoding

Source§

fn as_ref(&self) -> &dyn LayoutEncoding

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<dyn LayoutEncoding> for DictLayoutEncoding

Source§

fn as_ref(&self) -> &dyn LayoutEncoding

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<dyn LayoutEncoding> for FlatLayoutEncoding

Source§

fn as_ref(&self) -> &dyn LayoutEncoding

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<dyn LayoutEncoding> for StructLayoutEncoding

Source§

fn as_ref(&self) -> &dyn LayoutEncoding

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<dyn LayoutEncoding> for ZonedLayoutEncoding

Source§

fn as_ref(&self) -> &dyn LayoutEncoding

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Display for dyn LayoutEncoding + '_

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for dyn LayoutEncoding + '_

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for dyn LayoutEncoding + '_

Implementors§