Struct agnes::store::DataStore [] [src]

pub struct DataStore {
    pub fields: Vec<DsField>,
    pub field_map: HashMap<FieldIdent, usize>,
    // some fields omitted
}

Data storage underlying a dataframe. Data is retrievable both by index (of the fields vector) and by field name.

Fields

List of fields within the data store

Map of field names to index of the fields vector

Methods

impl DataStore
[src]

[src]

Generate and return an empty data store

[src]

Create a new DataStore which will contain the provided fields.

[src]

Create a new DataStore from an interator of fields.

[src]

Create a new DataStore with provided data. Data is provided in type-specific vectors of field identifiers along with data for the identifier.

NOTE: This function provides no protection against field name collisions.

[src]

Insert a value (provided in unparsed string form) for specified field

[src]

Returns true if this DataStore contains this field.

[src]

Get the field information struct for a given field name

[src]

Get the list of field information structs for this data store

[src]

Get the field names in this data store

[src]

Check if datastore is "homogenous": all columns (regardless of field type) are the same length

[src]

Retrieve number of rows for this data store

Trait Implementations

impl Debug for DataStore
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DataStore
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for DataStore
[src]

[src]

Returns the "default value" for a type. Read more

impl ApplyToElem for DataStore
[src]

[src]

Apply a MapFn to the specific field and index of this data structure.

impl FieldApplyTo for DataStore
[src]

[src]

Apply a FieldMapFn to specified field on this data structure.

impl AddData<u64> for DataStore
[src]

[src]

Add a single value to the specified field.

impl AddDataVec<u64> for DataStore
[src]

[src]

Add a vector of data values to the specified field.

impl AddData<i64> for DataStore
[src]

[src]

Add a single value to the specified field.

impl AddDataVec<i64> for DataStore
[src]

[src]

Add a vector of data values to the specified field.

impl AddData<String> for DataStore
[src]

[src]

Add a single value to the specified field.

impl AddDataVec<String> for DataStore
[src]

[src]

Add a vector of data values to the specified field.

impl AddData<bool> for DataStore
[src]

[src]

Add a single value to the specified field.

impl AddDataVec<bool> for DataStore
[src]

[src]

Add a vector of data values to the specified field.

impl AddData<f64> for DataStore
[src]

[src]

Add a single value to the specified field.

impl AddDataVec<f64> for DataStore
[src]

[src]

Add a vector of data values to the specified field.

impl From<DataStore> for DataView
[src]

[src]

Performs the conversion.

impl From<DataStore> for DataFrame
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for DataStore

impl Sync for DataStore