Struct structured::Table[][src]

pub struct Table { /* fields omitted */ }

Structured data represented in a column-oriented form.

Implementations

impl Table[src]

pub fn new(
    schema: Arc<Schema>,
    columns: Vec<Column>,
    event_ids: HashMap<u64, usize>
) -> Result<Self, &'static str>
[src]

Creates a new Table with the given schema and columns.

Errors

Returns an error if columns have different lengths.

pub fn append(&mut self, other: &mut Self)[src]

Moves all the rows of other intot self, leaving other empty.

Panics

Panics if the types of columns are different, or the number of rows overflows usize.

#[must_use]pub fn columns(&self) -> Iter<'_, Column>[src]

Returns an Iterator for columns.

#[must_use]pub fn num_columns(&self) -> usize[src]

Returns the number of columns in the table.

#[must_use]pub fn num_rows(&self) -> usize[src]

Returns the number of rows in the table.

#[must_use]pub fn statistics(
    &self,
    rows: &[usize],
    column_types: &Arc<Vec<ColumnType>>,
    r_enum_maps: &Arc<HashMap<usize, Arc<HashMap<u32, Vec<String>>>>>,
    time_intervals: &Arc<Vec<u32>>,
    numbers_of_top_n: &Arc<Vec<u32>>
) -> Vec<ColumnStatistics>
[src]

#[must_use]pub fn count_group_by(
    &self,
    rows: &[usize],
    column_types: &Arc<Vec<ColumnType>>,
    by_column: usize,
    by_interval: Option<u32>,
    count_columns: &Arc<Vec<usize>>
) -> Vec<GroupCount>
[src]

#[must_use]pub fn get_index_of_event(&self, eventid: u64) -> Option<&usize>[src]

pub fn limit_dimension(
    &mut self,
    enum_dimensions: &HashMap<usize, u32>,
    enum_maps: &Arc<DashMap<usize, Arc<DashMap<String, (u32, usize)>>>>,
    max_dimension: u32,
    max_enum_portion: f64
) -> (HashMap<usize, u32>, HashMap<usize, u32>)
[src]

Trait Implementations

impl Clone for Table[src]

impl Debug for Table[src]

Auto Trait Implementations

impl !RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl !UnwindSafe for Table

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>,