OmniSciDB
a5dc49c757
|
#include <ParquetArrayImportEncoder.h>
Public Member Functions | |
ParquetArrayImportEncoder (Data_Namespace::AbstractBuffer *data_buffer, std::shared_ptr< ParquetScalarEncoder > scalar_encoder, const ColumnDescriptor *column_desciptor) | |
void | appendArrayItem (const int64_t encoded_index) override |
void | validateAndAppendData (const int16_t *def_levels, const int16_t *rep_levels, const int64_t values_read, const int64_t levels_read, int8_t *values, const SQLTypeInfo &column_type, InvalidRowGroupIndices &invalid_indices) override |
void | resetLastArrayMetadata () override |
Public Member Functions inherited from foreign_storage::ParquetArrayEncoder | |
ParquetArrayEncoder (Data_Namespace::AbstractBuffer *data_buffer, std::shared_ptr< ParquetScalarEncoder > scalar_encoder, const ColumnDescriptor *column_desciptor) | |
void | appendDataTrackErrors (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 |
void | finalizeRowGroup () |
std::shared_ptr< ChunkMetadata > | getRowGroupMetadata (const parquet::RowGroupMetaData *group_metadata, const int parquet_column_index, const SQLTypeInfo &column_type) override |
virtual void | disableMetadataStatsValidation () override |
virtual void | initializeErrorTracking () override |
virtual void | initializeColumnType (const SQLTypeInfo &column_type) override |
Public Member Functions inherited from foreign_storage::ParquetEncoder | |
ParquetEncoder (Data_Namespace::AbstractBuffer *buffer) | |
virtual | ~ParquetEncoder ()=default |
RejectedRowIndices | getRejectedRowIndices () const |
Protected Member Functions | |
void | appendArraysToBuffer () override |
void | processLastArray () override |
Protected Member Functions inherited from foreign_storage::ParquetArrayEncoder | |
bool | isLastArrayNull () const |
bool | isLastArrayEmpty () const |
size_t | sizeOfLastArray () const |
int8_t * | resizeArrayDataBytes (const size_t additional_num_elements) |
bool | isNewArray (const int16_t rep_level) const |
int8_t * | encodedDataAtIndex (const size_t index) |
void | updateMetadataForAppendedArrayItem (const int64_t encoded_index) |
virtual void | encodeAllValues (const int8_t *values, const int64_t values_read) |
Private Member Functions | |
ArrayDatum | convertToArrayDatum (const int8_t *data, const size_t num_elements) |
ArrayDatum | getNullArrayDatum () |
void | appendToArrayDatumBuffer () |
void | eraseInvalidIndicesInBuffer (const InvalidRowGroupIndices &invalid_indices) override |
Private Attributes | |
std::vector< bool > | is_valid_item_ |
TypedParquetStorageBuffer < ArrayDatum > * | array_datum_buffer_ |
const ColumnDescriptor * | column_descriptor_ |
size_t | num_array_assembled_ |
bool | is_invalid_array_ |
InvalidRowGroupIndices * | invalid_indices_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from foreign_storage::ParquetEncoder | |
static std::shared_ptr < ChunkMetadata > | createMetadata (const SQLTypeInfo &column_type) |
static void | throwNotNullViolation (const std::string &parquet_column_name) |
static void | validateNullCount (const std::string &parquet_column_name, int64_t null_count, const SQLTypeInfo &column_type) |
Protected Attributes inherited from foreign_storage::ParquetArrayEncoder | |
size_t | omnisci_data_type_byte_size_ |
std::shared_ptr < ParquetScalarEncoder > | scalar_encoder_ |
std::vector< int8_t > | data_buffer_bytes_ |
Protected Attributes inherited from foreign_storage::ParquetEncoder | |
Data_Namespace::AbstractBuffer * | buffer_ |
bool | is_error_tracking_enabled_ |
RejectedRowIndices | invalid_indices_ |
size_t | current_chunk_offset_ |
SQLTypeInfo | column_type_ |
bool | validate_metadata_stats_ |
Static Protected Attributes inherited from foreign_storage::ParquetArrayEncoder | |
static const int16_t | non_null_def_level = 3 |
static const int16_t | item_null_def_level = 2 |
static const int16_t | empty_list_def_level = 1 |
static const int16_t | list_null_def_level = 0 |
Definition at line 27 of file ParquetArrayImportEncoder.h.
|
inline |
Definition at line 30 of file ParquetArrayImportEncoder.h.
References array_datum_buffer_, and CHECK.
|
inlineoverridevirtual |
Reimplemented from foreign_storage::ParquetArrayEncoder.
Definition at line 43 of file ParquetArrayImportEncoder.h.
References foreign_storage::ParquetArrayEncoder::appendArrayItem(), is_invalid_array_, and is_valid_item_.
|
inlineoverrideprotectedvirtual |
Reimplemented from foreign_storage::ParquetArrayEncoder.
Definition at line 76 of file ParquetArrayImportEncoder.h.
|
inlineprivate |
Definition at line 102 of file ParquetArrayImportEncoder.h.
References foreign_storage::TypedParquetStorageBuffer< Type >::appendElement(), array_datum_buffer_, CHECK, convertToArrayDatum(), foreign_storage::ParquetArrayEncoder::data_buffer_bytes_, getNullArrayDatum(), foreign_storage::ParquetArrayEncoder::isLastArrayEmpty(), foreign_storage::ParquetArrayEncoder::isLastArrayNull(), foreign_storage::ParquetArrayEncoder::omnisci_data_type_byte_size_, and foreign_storage::ParquetArrayEncoder::sizeOfLastArray().
Referenced by processLastArray().
|
inlineprivate |
Definition at line 90 of file ParquetArrayImportEncoder.h.
References foreign_storage::ParquetArrayEncoder::omnisci_data_type_byte_size_.
Referenced by appendToArrayDatumBuffer().
|
inlineoverrideprivatevirtual |
Implements foreign_storage::ParquetImportEncoder.
Definition at line 118 of file ParquetArrayImportEncoder.h.
References array_datum_buffer_, and foreign_storage::TypedParquetStorageBuffer< Type >::eraseInvalidData().
|
inlineprivate |
Definition at line 98 of file ParquetArrayImportEncoder.h.
References column_descriptor_, ColumnDescriptor::columnType, and import_export::ImporterUtils::composeNullArray().
Referenced by appendToArrayDatumBuffer().
|
inlineoverrideprotectedvirtual |
Reimplemented from foreign_storage::ParquetArrayEncoder.
Definition at line 80 of file ParquetArrayImportEncoder.h.
References appendToArrayDatumBuffer(), CHECK, invalid_indices_, is_invalid_array_, and num_array_assembled_.
|
inlineoverridevirtual |
Reimplemented from foreign_storage::ParquetArrayEncoder.
Definition at line 70 of file ParquetArrayImportEncoder.h.
References is_invalid_array_, and foreign_storage::ParquetArrayEncoder::resetLastArrayMetadata().
|
inlineoverridevirtual |
Implements foreign_storage::ParquetImportEncoder.
Definition at line 50 of file ParquetArrayImportEncoder.h.
References foreign_storage::ParquetArrayEncoder::appendData(), invalid_indices_, is_valid_item_, and foreign_storage::ParquetArrayEncoder::scalar_encoder_.
|
private |
Definition at line 127 of file ParquetArrayImportEncoder.h.
Referenced by appendToArrayDatumBuffer(), eraseInvalidIndicesInBuffer(), and ParquetArrayImportEncoder().
|
private |
Definition at line 128 of file ParquetArrayImportEncoder.h.
Referenced by getNullArrayDatum().
|
private |
Definition at line 131 of file ParquetArrayImportEncoder.h.
Referenced by processLastArray(), and validateAndAppendData().
|
private |
Definition at line 130 of file ParquetArrayImportEncoder.h.
Referenced by appendArrayItem(), processLastArray(), and resetLastArrayMetadata().
|
private |
Definition at line 126 of file ParquetArrayImportEncoder.h.
Referenced by appendArrayItem(), and validateAndAppendData().
|
private |
Definition at line 129 of file ParquetArrayImportEncoder.h.
Referenced by processLastArray().