taco-db
0.1.0
|
DataArray is a plain byte array that can be stored as a Datum itself and stores the data of a few datum where we do not want to bother with creating a schema. More...
#include <base/datum.h>
Static Public Member Functions | |
static Datum | From (const Datum *data, uint32_t n) |
Makes a deep copy of the data and stores them in a data array. More... | |
template<class SomeDatum > | |
static size_t | GetArrayLength (SomeDatum &&d) |
Returns the array length of the DataArray stored in d . More... | |
template<class SomeDatum > | |
static Datum | GetDatum (SomeDatum &&d, size_t i) |
Returns the ith Datum of the DataArray stored in d . More... | |
Static Public Attributes | |
constexpr static uint32_t | VARLEN_MASK = 1u << 31 |
DataArray is a plain byte array that can be stored as a Datum itself and stores the data of a few datum where we do not want to bother with creating a schema.
It is currently used for save points and rewinding in PlanExecNode. In addition the datum stored in the array may not exceed 2^31
Note that DataArray do not differentiate between zero-length value and a null value. A zero-length value becomes a null Datum when
GetDatum()
is called.
|
inlinestatic |
Returns the array length of the DataArray stored in d
.
|
inlinestatic |
|
staticconstexpr |