Crate repr[−][src]
Fundamental data representation.
This module contains the types for representing data in Materialize that all layers of the stack can understand. Think of it as the lingua franca: individual layers may use different representations internally, but they all agree to use this representation at their boundaries.
- The core value type is the
Datum
enum, which represents a literal value. Row
extends aDatum
horizontally, and has features for efficiently doing so, and can be built via aRowPacker
.RelationDesc
describes what it takes to extend aRow
vertically, and corresponds most closely to what is returned from querying our dataflows
Modules
adt | Abstract data types. |
cache | |
relation | |
row | |
scalar | |
strconv | Routines for converting datum values to and from their string representation. |
Structs
CachedRecord | A single record from a source and partition that can be written to disk by the cacher thread, and read back in and sent to the ingest pipeline later. |
CachedRecordIter | Iterator through a cached set of records. |
ColumnName | The name of a column in a |
ColumnType | The type of a |
DatumList | A sequence of Datums |
DatumMap | A mapping from string keys to Datums |
RelationDesc | A description of the shape of a relation. |
RelationType | The type of a relation. |
Row | A packed representation for |
RowArena |
|
RowPacker |
|
Enums
Datum | A single value. |
ScalarBaseType | |
ScalarType | The type of a |
Functions
datum_size | Number of bytes required by the datum. |
Type Definitions
Diff | System-wide record count difference type. |
Timestamp | System-wide timestamp type. |