[][src]Module agnes::view

Main DataView struct and associated implementations.

Aggregation

There are three types of data aggregation supported by agnes:

  • Data merging -- combining two DataView objects with the same number of records together, creating a new DataView with all the fields of the two source DataViews.
  • Data appending -- combining two DataView objects with the same fields, creating a new DataView object with all of the records of the two source DataViews.
  • Data joining -- combining two DataView objects using specified join, creating a new DataView object with a subset of records from the two source DataViews according to the join parameters.

Structs

AddCellToRowFn

Function (implementing Func) that adds cells to prettytable::row::Row.

DataView

A DataView is a specific view of data stored inside a DataStore. It consists of a list of DataFrame objects, which themselves reference individual DataStores.

FrameDetailMarkers

Marker struct with the details of where to find a field's data. The FrameIndex specifies the index of the DataFrame in a DataView's Frames cons-list. The FrameLabel denotes the label of the field within that frame.

Record

A struct representing a single record across the fields in the field list Fields.

Traits

AssocDataIndexCons

Trait for finding the associated DataIndexCons (cons-list of fields) in a type given labels in a labels list.

FieldList

Trait for finding a cons-list of fields (implementing DataIndex) from frames list Frames using the LabelList list of labels. LabelList should consist of labels that exist within Self (this trait is implemented by label lookup lists).

FieldListPred

Helper trait for (FieldList). IsMember is whether or not the head of Self is a member of the list LabelList.

FindFrame

Marker trait for being able to find a frame of label Label within label lookup list Labels in this type

FindFrameDetails

A trait for finding the associated frame details (implementing FrameDetails -- frame index and label within that frame) for for specific label within this type.

FrameDetails

A trait for providing the associated FrameIndex and FrameLabel types for a FrameDetailMarkers struct.

FrameIndexList

A trait for deriving the LabelCons of field indices of a type.

HashIndex

Trait for computing the hash of a single index (record) within a list of data fields.

PartialEqIndex

Trait for computing equality of a single index (record) within a list of data fields.

Relabel

Trait for relabeling the label TargetLabel with NewLabel.

RelabelMatch

Helper trait for relabeling. Used by Relabel. TargetLabel is the label to change, NewLabel is the desired label to change to, and Match is whether or not TargetLabel matches the head label in this type.

SelectFieldFromLabels

Trait for selecting a field (implementing DataIndex) associated with the label Label from the label lookup list Labels from a type.

SerializeViewField

Trait for serializing a single field in a view. Used for serializing a DataView.

UpdatePermutation

Trait for updating the permutation of all data storage in a type.

ViewMerge

Trait for merging the data from two DataViews into one new DataView. The two DataViews should have the same number of rows, and the resultant DataView is one with all the fields of both of the two original DataViews.

Type Definitions

AssocDataIndexConsOf

Type alias for finding the DataIndexCons within the frames Frames associated with labels Labels.

DataIndexCons

Type alias for the cons-list of fields implementing DataIndex.

FieldFromFrameDetailsOf

Type alias for the field (implementing DataIndex) within the frames list Frames associated with the FrameIndex and FrameLabel.

FieldOf

Type alias for the field (implementing DataIndex) within the frames list Frames associated with the label Label in the label lookup list Labels.

FieldTypeFromFrameDetailsOf

Type alias for the data type of the field (implementing DataIndex) within the frames list Frames associated with the FrameIndex and FrameLabel.

FieldTypeOf

Type alias for the data type of the field (implementing DataIndex) within the frames list Frames associated with the label Label in the label lookup list Labels.

FrameByFrameIndexOf

Type alias for the DataFrame within Frames associated with a FrameIndex.

FrameDetailsOf

Type alias for the FrameDetails-implementing struct associated with the label Label in the label lookup list Labels.

FrameElemByFrameIndexOf

Type alias for the cons-list element within Frames associated with a FrameIndex.

FrameElemOf

Type alias for the cons-list element within Frames associated with label Label in the label lookup list Labels.

FrameIndexOf

Type alias for the FrameIndex of FrameDetails-implementing struct associated with the label Label in the label lookup list Labels.

FrameLabelOf

Type alias for the FrameLLabel of FrameDetails-implementing struct associated with the label Label in the label lookup list Labels.

FrameLookupCons

Cons-list of field labels along with the details necessary to look up that label in a DataView's ViewFrameCons cons-list of DataFrames. The FrameIndex specifies the index of the DataFrame containing the field labeled Label in the ViewFrameCons, and the FrameLabel specifies the potentially-different (since DataView supports renaming fields) Label within that DataFrame.

FrameOf

Type alias for the DataFrame within Frames associated with the label Label in the label lookup list Labels.

VFieldOf

Type alias for the field (implementing DataIndex) within the DataView View associated with label Label.

VFieldTypeOf

Type alias for the datta type of the field (implementing DataIndex) within the DataView View associated with label Label.

ViewFrameCons

Cons-list of DataFrames held by a DataView.FrameIndexis simply an index used byFrameLookupConsto look upDataFrames for a specifiedLabel, andFrameFieldsis set of fields within the specifiedDataFrame`.