Modules§
- columnation π
- encode πA permanent storage encoding for rows.
- Defines a βlending iteratorβ for
Row
- Nested message and enum types in
ProtoDatum
.
Structs§
- A sequence of Datums
- A mapping from string keys to Datums
- Represents a single
Datum
, appropriate to be nested inside otherDatum
s. - See [dec::to_packed_bcd] and http://speleotrove.com/decimal/dnpack.html for more information on this format.
- A packed representation for
Datum
s. RowArena
is used to hold on to temporaryRow
s for functions likeeval
that need to create complexDatum
s but donβt have aRow
to put them in yet.- Packs datums into a
Row
. - A contiguous slice of bytes that are row data.
- A thread-local row, which can be borrowed and returned.
Enums§
- Tag π
Constants§
Functions§
- Returns an i64 representing a
NaiveDateTime
, if said i64 can be round-tripped back to aNaiveDateTime
. - date_
to_ πarray - 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.
- Number of bytes required by the datum. This is used to optimistically pre-allocate buffers for packing rows.
- Number of bytes required by a sequence of datums.
- min_
bytes_ πsigned - min_
bytes_ πunsigned - naive_
date_ πto_ arrays - push_
date π - push_
datum π - push_
lengthed_ πbytes - push_
naive_ πdate - push_
time π - push_
untagged_ πbytes - read_
byte π - read_
byte_ πarray - Read
length
bytes fromdata
atoffset
, updating the latter. Extend the resulting buffer to a negativeN
-byte twos complement integer by filling the remaining bits with 1. - Read
length
bytes fromdata
atoffset
, updating the latter. Extend the resulting buffer to a positive or zeroN
-byte twos complement integer by filling the remaining bits with 0. - read_
byte_ π βarray_ sign_ extending Readlength
bytes fromdata
atoffset
, updating the latter. Extend the resulting buffer to an array ofN
bytes by insertingFILL
in the k most significant bytes, where k = N - length. - read_
date π - Read a datum starting at byte
offset
. - read_
lengthed_ π βdatum Read a data whose length is encoded in the row before its contents. - read_
naive_ πdate - read_
time π - read_
untagged_ πbytes Read a byte slice starting at byteoffset
. - Return the number of bytes these Datums would use if packed as a Row.
- time_
to_ πarrays