Skip to main content

PrimitiveArrayExt

Trait PrimitiveArrayExt 

Source
pub trait PrimitiveArrayExt: TypedArrayRef<Primitive> {
    // Provided methods
    fn ptype(&self) -> PType { ... }
    fn nullability(&self) -> Nullability { ... }
    fn validity_child(&self) -> Option<&ArrayRef> { ... }
    fn validity(&self) -> Validity { ... }
    fn validity_mask(&self) -> Mask { ... }
    fn buffer_handle(&self) -> &BufferHandle { ... }
    fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray { ... }
    fn narrow(&self) -> VortexResult<PrimitiveArray> { ... }
}

Provided Methods§

Source

fn ptype(&self) -> PType

Source

fn nullability(&self) -> Nullability

Source

fn validity_child(&self) -> Option<&ArrayRef>

Source

fn validity(&self) -> Validity

Source

fn validity_mask(&self) -> Mask

Source

fn buffer_handle(&self) -> &BufferHandle

Source

fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray

Source

fn narrow(&self) -> VortexResult<PrimitiveArray>

Narrow the array to the smallest possible integer type that can represent all values.

Implementors§