Macaw.Data.Operations.Transforms.Filter (macaw_data v0.13.0)

View Source

filter (spec/04 §4.1): the rows, in order, whose reading of field passes test against value. present and absent test nil; eq and ne compare a number by its value (1 equals 1.0) and a category one value whichever spelling it has (Macaw.Data.Operations.same?/2), and a time by its instant; the orderings compare the reading and value by the column's type, by the keys sort orders by (Macaw.Data.Source.Order.key/2), the value read as the column reads it at the edge. So lte and gte both hold exactly when eq does. A nil reading, and one of no reading for its type, never passes an ordering nor eq; a value of no reading for the column's type (nil included) is a fault under an ordering, and under eq and ne on a time column, raised before any row is read.

Summary

Types

What a chunk is tested with: the column's name (nil for a column the rows lack), its type, and for an ordering, or eq and ne on a time column, the value's key under that type (else nil).

Types

bound()

@type bound() ::
  {Macaw.Data.Table.name() | nil, Macaw.Data.Table.type() | nil, term()}

What a chunk is tested with: the column's name (nil for a column the rows lack), its type, and for an ordering, or eq and ne on a time column, the value's key under that type (else nil).