pub struct Population {
pub driver: Table,
pub keys: Vec<String>,
pub data: Vec<(Table, HashMap<String, Vec<u32>>)>,
pub orphan_rows: u64,
pub orphan_keys: u64,
pub orphan_samples: Vec<String>,
/* private fields */
}Expand description
The population of a per-row output.
Fields§
§driver: Table§keys: Vec<String>Each driver row’s key, shown (a_b for a composite key), in driver order.
data: Vec<(Table, HashMap<String, Vec<u32>>)>Each data query, and its rows by key (index form).
orphan_rows: u64Rows of data queries whose key isn’t in the driver: how many, how many keys, and up to 10 of them.
orphan_keys: u64§orphan_samples: Vec<String>Implementations§
Source§impl Population
impl Population
Sourcepub fn build(
driver: Table,
data: Vec<Table>,
key: &[String],
) -> Result<Population, String>
pub fn build( driver: Table, data: Vec<Table>, key: &[String], ) -> Result<Population, String>
Index the driver and each data query by key. A duplicate driver key is an error.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn slices(&self, i: usize) -> Result<Vec<RecordBatch>, String>
pub fn slices(&self, i: usize) -> Result<Vec<RecordBatch>, String>
Row i’s slice of each data query, in order.
Sourcepub fn driver_row(&self, i: usize) -> RecordBatch
pub fn driver_row(&self, i: usize) -> RecordBatch
Row i of the driver, as a one-row batch.
Auto Trait Implementations§
impl !RefUnwindSafe for Population
impl !UnwindSafe for Population
impl Freeze for Population
impl Send for Population
impl Sync for Population
impl Unpin for Population
impl UnsafeUnpin for Population
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more