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.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. |
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 |
|
RowRef | A wrapper around a byte slice that guarantees the data are row-formatted. |
Enums
Datum | A single value. |
ScalarBaseType | |
ScalarType | The type of a |
Functions
datum_list_size | Number of bytes required by a list of datums. This computes the size that would be required if the given datums were packed into a list. |
datum_size | Number of bytes required by the datum. |
datums_size | Number of bytes required by a sequence of datums. |
Type Definitions
Diff | System-wide record count difference type. |
Timestamp | System-wide timestamp type. |