Struct structured::Table [−][src]
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]
schema: Arc<Schema>,
columns: Vec<Column>,
event_ids: HashMap<u64, usize>
) -> Result<Self, &'static str>
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]
&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>
#[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]
&self,
rows: &[usize],
column_types: &Arc<Vec<ColumnType>>,
by_column: usize,
by_interval: Option<u32>,
count_columns: &Arc<Vec<usize>>
) -> Vec<GroupCount>
#[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]
&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>)
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,