Enum smartnoise_validator::base::Jagged[][src]

pub enum Jagged {
    Bool(Vec<Vec<bool>>),
    Int(Vec<Vec<Integer>>),
    Float(Vec<Vec<Float>>),
    Str(Vec<Vec<String>>),
}

The universal jagged array representation.

Typically used to store categorically clamped values. In practice, use is limited to public categories over multiple columns, and the upper triangular covariance matrix

Jagged has a one-to-one mapping to a protobuf Vector2DJagged.

Variants

Bool(Vec<Vec<bool>>)
Int(Vec<Vec<Integer>>)
Float(Vec<Vec<Float>>)
Str(Vec<Vec<String>>)

Implementations

impl Jagged[src]

pub fn float(&self) -> Result<Vec<Vec<Float>>>[src]

Retrieve the f64 jagged matrix, assuming the data type of the jagged matrix is f64, and assuming all columns are defined

pub fn int(&self) -> Result<Vec<Vec<Integer>>>[src]

Retrieve the i64 jagged matrix, assuming the data type of the jagged matrix is i64

pub fn string(&self) -> Result<Vec<Vec<String>>>[src]

Retrieve the String jagged matrix, assuming the data type of the jagged matrix is String

pub fn bool(&self) -> Result<Vec<Vec<bool>>>[src]

Retrieve the bool jagged matrix, assuming the data type of the jagged matrix is bool

pub fn num_columns(&self) -> i64[src]

pub fn num_records(&self) -> Vec<i64>[src]

pub fn deduplicate(&self) -> Result<Jagged>[src]

pub fn standardize(self, num_columns: i64) -> Result<Jagged>[src]

pub fn data_type(&self) -> DataType[src]

pub fn to_index_keys(&self) -> Result<Vec<Vec<IndexKey>>>[src]

Trait Implementations

impl Clone for Jagged[src]

impl Debug for Jagged[src]

impl From<Vec<Vec<String, Global>, Global>> for Jagged[src]

impl From<Vec<Vec<bool, Global>, Global>> for Jagged[src]

impl From<Vec<Vec<f64, Global>, Global>> for Jagged[src]

impl From<Vec<Vec<i64, Global>, Global>> for Jagged[src]

Auto Trait Implementations

impl RefUnwindSafe for Jagged

impl Send for Jagged

impl Sync for Jagged

impl Unpin for Jagged

impl UnwindSafe for Jagged

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]