19 #include <parquet/types.h>
24 namespace foreign_storage {
29 std::shared_ptr<ParquetScalarEncoder> scalar_encoder,
35 const int16_t* rep_levels,
36 const int64_t values_read,
37 const int64_t levels_read,
38 int8_t* values)
override {
39 CHECK(levels_read > 0);
42 def_levels, rep_levels, values_read, levels_read, values);
std::vector< int8_t > data_buffer_bytes_
bool isLastArrayEmpty() const
Data_Namespace::AbstractBuffer * index_buffer_
virtual void appendArraysToBuffer()
bool isLastArrayNull() const
void appendArraysToBuffer() override
ParquetVariableLengthArrayEncoder(Data_Namespace::AbstractBuffer *data_buffer, Data_Namespace::AbstractBuffer *index_buffer, std::shared_ptr< ParquetScalarEncoder > scalar_encoder, const ColumnDescriptor *column_desciptor)
void appendData(const int16_t *def_levels, const int16_t *rep_levels, const int64_t values_read, const int64_t levels_read, int8_t *values) override
void appendData(const int16_t *def_levels, const int16_t *rep_levels, const int64_t values_read, const int64_t levels_read, int8_t *values) override
static const int16_t empty_list_def_level
An AbstractBuffer is a unit of data management for a data manager.
specifies the content in-memory of a row in the column metadata table
void appendLastArrayOffset()
std::vector< ArrayOffsetT > offsets_
static constexpr size_t DEFAULT_NULL_PADDING_SIZE
void processLastArray() override
virtual void append(int8_t *src, const size_t num_bytes, const MemoryLevel src_buffer_type=CPU_LEVEL, const int device_id=-1)=0
static const int16_t list_null_def_level
void setFirstOffsetForBuffer(const int16_t def_level)
Data_Namespace::AbstractBuffer * buffer_
virtual void processLastArray()