Trait ArrayCanonicalImpl

Source
pub trait ArrayCanonicalImpl {
    // Required method
    fn _to_canonical(&self) -> VortexResult<Canonical>;

    // Provided method
    fn _append_to_builder(
        &self,
        builder: &mut dyn ArrayBuilder,
    ) -> VortexResult<()> { ... }
}
Expand description

Implementation trait for canonicalization functions.

These functions should not be called directly, rather their equivalents on the base crate::Array trait should be used.

Required Methods§

Source

fn _to_canonical(&self) -> VortexResult<Canonical>

Returns the canonical representation of the array.

§Post-conditions
  • The length is equal to that of the input array.
  • The vortex_dtype::DType is equal to that of the input array.

Provided Methods§

Source

fn _append_to_builder(&self, builder: &mut dyn ArrayBuilder) -> VortexResult<()>

Writes the array into the canonical builder.

§Post-conditions
  • The length of the builder is incremented by the length of the input array.

Implementors§