[][src]Module agnes::frame

Structs and implementation for row-selecting data structure.

A DataFrame is a reference to an underlying DataStore along with record-based filtering and sorting details.

Structs

DataFrame

A data frame. A reference to the underlying data store along with record-based filtering and sorting details. FrameFields is a FieldLookupCons cons-list which maps a single label to one or more underlying store labels.

Framed

Structure to hold references to a data structure (e.g. DataStore) and a frame used to view that structure. Provides DataIndex for the underlying data structure, as viewed through the frame.

Melt

StoreFieldMarkers FrameType for multi-source fields constructed by a 'melt' call.

Single

StoreFieldMarkers FrameType for typical single-source fields

StoreFieldMarkers

A marker struct for a frame type (Single, Melt, etc.) and the list of fields used with this type (a StoreFieldCons / LabelCons).

Traits

IntoFrame

Trait for repackaging an data store into a DataFrame[struct.DataFrame.html]. The output DataFrame should have the same labels as the underlying data store.

IntoMeltFrame

Trait for repackaging an data store into a DataFrame[struct.DataFrame.html] as a melted data structure. The output DataFrame will have one label, MeltLabel, which rotates over the labels in underlying data store.

IntoStrFrame

Trait for creating a DataFrame containing a single field with label Label which contains the String labels of the implementing type (a cons-list).

MeltFrameFields

Helper trait for IntoMeltFrame to generate the FrameFields list.

RotateFields

Trait for generating a collection of objects implementing DataIndex with the same underlying type. Used for rotating through source fields in a Melted field.

RotateFieldsTerm

Helper trait for helping terminate a RotateFields recursion. Handles taking care of the Nil end-case without losing the type information of the returned output collection.

SelectAndFrame

Trait for selecting a field associated with the label Label from the fields in FramedStore.

SelectAndFrameMatch

Helper trait for selecting and framing fields. Used by SelectAndFrame. Label is the label to select, FramedStore is the struct the data is stored in, and Match is whether or not Label matches the head label in this type.

SimpleFrameFields

Trait for computing the FrameFields FieldLookupCons cons-list for a standard DataFrame (where all labels simple pass through with calls to the underlying DataStore).

Type Definitions

FieldLookupCons

Type alias for a cons-list which associated frame labels with their underlying store(s). FrameLabel is a label struct. StoreDetails is a StoreFieldMarkers struct.

StoreFieldCons

Type alias for label-only cons-list