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]

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

[src]

Retrieve an unsigned integer field

[src]

Retrieve a signed integer field

[src]

Retrieve a string field

[src]

Retrieve a boolean field

[src]

Retrieve a floating-point field

[src]

Get all the data for a field, returned within the FieldData common data enum. Returns None if the specified FieldIdent object does not exist.

[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 Default for DataStore
[src]

[src]

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

impl From<DataStore> for DataView
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for DataStore

impl Sync for DataStore