phasedb v0.0.2 PhaseDB.DataSet

Constructs an enumerable DataSet set from the query results, including handling interpolation.

Summary

Functions

Create a DataSet from attrs

Return the first (ie earliest) row from the DataSet

Return the last (ie latest) row from the DataSet

Types

t :: %PhaseDB.DataSet{end_idx: term, resolution: term, start_idx: term, storage_rows: term}

Functions

create(opts \\ [])

Specs

create(Keyword.t) :: t

Create a DataSet from attrs.

first(r)

Specs

first(t) :: PhaseDB.Row.t

Return the first (ie earliest) row from the DataSet.

last(r)

Specs

last(t) :: PhaseDB.Row.t

Return the last (ie latest) row from the DataSet.