Struct agnes::view::DataView[][src]

pub struct DataView<DTypes> where
    DTypes: DTypeList
{ /* fields omitted */ }

A 'view' into a data store. The primary struct for viewing and manipulating data.

Methods

impl<DTypes> DataView<DTypes> where
    DTypes: DTypeList
[src]

Generate a new subview of this DataView.

Generate a new subview of this DataView, generating an error if a specified field does not exist.

Number of rows in this data view

Returns true if the DataView is empty (has no rows or has no fields)

Number of fields in this data view

Field names in this data view

Returns true if this DataView contains this field.

Rename a field of this DataView.

Merge this DataView with another DataView object, creating a new DataView with the same number of rows and all the fields from both source DataView objects.

Combine two DataView objects using specified join, creating a new DataStore object with a subset of records from the two source DataViews according to the join parameters.

Note that since this is creating a new DataStore object, it will be allocated new data to store the contents of the joined DataViews.

Returns an iterator over the fields (as FieldIdents of this DataView.

Applies the provided Func to the data in the specified field. This Func must be implemented for all types in DTypes.

Fails if the specified identifier is not found in this DataView.

Applies the provided Func to the data in the specified field. This Func must be implemented for type T.

Fails if the specified identifier is not found in this DataView or the incorrect type T is used.

Applies the provided FuncExt to the data in the specified field. This FuncExt must be implemented for all types in DTypes.

Fails if the specified identifier is not found in this DataView.

Applies the provided FuncPartial to the data in the specified field.

Fails if the specified identifier is not found in this DataView.

Returns the permutation (list of indices in sorted order) of values in field identified by ident.

The resulting permutation denotes the order of values in ascending order, with missing (NA) values at the beginning of the order (considered to be of 'lesser' value than existing values).

Fails if the field is not found in this DataView.

impl<DTypes> DataView<DTypes> where
    DTypes: DTypeList
[src]

Create a FieldView object from a DataView object, if possible. Typically, use this on DataView objects with only a single field; however, if the DataView object has multiple fields, the first one will be used for this FieldView. Returns None if the DataView has no fields (is empty).

impl<DTypes: DTypeList> DataView<DTypes> where
    DTypes: DTypeList,
    DTypes::Storage: MaxLen<DTypes>,
    MinFn: FuncPartial<DTypes>,
    <MinFn as FuncPartial<DTypes>>::Output: ToString,
    MaxFn: FuncPartial<DTypes>,
    <MaxFn as FuncPartial<DTypes>>::Output: ToString,
    SumFn: FuncPartial<DTypes>,
    <SumFn as FuncPartial<DTypes>>::Output: ToString,
    MeanFn: FuncPartial<DTypes>,
    <MeanFn as FuncPartial<DTypes>>::Output: ToString,
    StdevFn: FuncPartial<DTypes>,
    <StdevFn as FuncPartial<DTypes>>::Output: ToString,
    DTypes::Storage: MapPartial<DTypes, StringifyFn<MinFn>>,
    DTypes::Storage: MapPartial<DTypes, StringifyFn<MaxFn>>,
    DTypes::Storage: MapPartial<DTypes, StringifyFn<SumFn>>,
    DTypes::Storage: MapPartial<DTypes, StringifyFn<MeanFn>>,
    DTypes::Storage: MapPartial<DTypes, StringifyFn<StdevFn>>, 
[src]

Compute and return general statistics for this DataView.

impl<'a, DTypes> DataView<DTypes> where
    DTypes: DTypeList
[src]

Returns a Vec of indices that point to the set of unique values of the specified identifier.

Fails if identifier is not found in the DataView or the incorrect type T is specified.

Returns a newly constructed DataView of the unique values of the specified identifier for this DataView.

Fails if the identifier is not found in the DataView or the incorrect type T is specified.

Trait Implementations

impl<DTypes: Debug> Debug for DataView<DTypes> where
    DTypes: DTypeList
[src]

Formats the value using the given formatter. Read more

impl<DTypes: Clone> Clone for DataView<DTypes> where
    DTypes: DTypeList
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<DTypes: Default> Default for DataView<DTypes> where
    DTypes: DTypeList
[src]

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

impl<DTypes> Field<DTypes> for DataView<DTypes> where
    DTypes: DTypeList
[src]

Returns a Selection struct containing the data for the field specified by ident. Read more

impl<'a, DTypes, T> SelectField<'a, T, DTypes> for DataView<DTypes> where
    T: 'static + DataType<DTypes>,
    DTypes: 'a + DTypeList,
    DTypes::Storage: MaxLen<DTypes>, 
[src]

The return type for the select method.

Returns an object that provides DataIndex access to the data in the field specified by ident. Read more

impl<DTypes, T> Filter<DTypes, T> for DataView<DTypes> where
    DataFrame<DTypes>: Filter<DTypes, T> + Field<DTypes>,
    DTypes: DTypeList,
    DTypes::Storage: MaxLen<DTypes> + TypeSelector<DTypes, T>,
    T: 'static + DataType<DTypes>, 
[src]

Filter the contents of this data structure by applying the supplied predicate on the specified field. Read more

impl<DTypes> From<DataStore<DTypes>> for DataView<DTypes> where
    DTypes: DTypeList
[src]

Performs the conversion.

impl<DTypes> Display for DataView<DTypes> where
    DTypes: DTypeList,
    DTypes::Storage: MaxLen<DTypes> + for<'a, 'b> Map<DTypes, FramedFunc<'a, DTypes, AddCellToRowFn<'b>>, ()>, 
[src]

Formats the value using the given formatter. Read more

impl<DTypes> Serialize for DataView<DTypes> where
    DTypes: DTypeList,
    DTypes::Storage: MaxLen<DTypes> + FieldSerialize<DTypes>, 
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl<DTypes> Send for DataView<DTypes> where
    <DTypes as AssocTypes>::DType: Send + Sync,
    <DTypes as AssocTypes>::Storage: Send + Sync

impl<DTypes> Sync for DataView<DTypes> where
    <DTypes as AssocTypes>::DType: Send + Sync,
    <DTypes as AssocTypes>::Storage: Send + Sync