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.

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 RelationDesc.

ColumnType

The type of a Datum.

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 Datums.

RowArena

RowArena is used to hold on to temporary Rows for functions like eval that need to create complex Datums but don't have a Row to put them in yet.

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 Datum.

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.