OmniSciDB
a5dc49c757
|
#include <ParquetEncoder.h>
Public Member Functions | |
ParquetEncoder (Data_Namespace::AbstractBuffer *buffer) | |
virtual | ~ParquetEncoder ()=default |
virtual 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)=0 |
virtual 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)=0 |
virtual std::shared_ptr < ChunkMetadata > | getRowGroupMetadata (const parquet::RowGroupMetaData *group_metadata, const int parquet_column_index, const SQLTypeInfo &column_type) |
RejectedRowIndices | getRejectedRowIndices () const |
virtual void | disableMetadataStatsValidation () |
virtual void | initializeErrorTracking () |
virtual void | initializeColumnType (const SQLTypeInfo &column_type) |
Static Protected Member Functions | |
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 | |
Data_Namespace::AbstractBuffer * | buffer_ |
bool | is_error_tracking_enabled_ |
RejectedRowIndices | invalid_indices_ |
size_t | current_chunk_offset_ |
SQLTypeInfo | column_type_ |
bool | validate_metadata_stats_ |
Definition at line 30 of file ParquetEncoder.h.
|
inline |
Definition at line 32 of file ParquetEncoder.h.
|
virtualdefault |
|
pure virtual |
Implemented in foreign_storage::TypedParquetInPlaceEncoder< V, T, NullType >, foreign_storage::TypedParquetInPlaceEncoder< int64_t, int32_t, NullType >, foreign_storage::TypedParquetInPlaceEncoder< V, V >, foreign_storage::ParquetGeospatialImportEncoder, foreign_storage::ParquetStringEncoder< V >, foreign_storage::ParquetDetectStringEncoder, foreign_storage::ParquetArrayEncoder, foreign_storage::ParquetInPlaceEncoder, foreign_storage::ParquetGeospatialEncoder, foreign_storage::ParquetStringNoneEncoder, foreign_storage::ParquetStringImportEncoder, and foreign_storage::ParquetVariableLengthArrayEncoder.
|
pure virtual |
Implemented in foreign_storage::TypedParquetInPlaceEncoder< V, T, NullType >, foreign_storage::TypedParquetInPlaceEncoder< int64_t, int32_t, NullType >, foreign_storage::TypedParquetInPlaceEncoder< V, V >, foreign_storage::ParquetGeospatialImportEncoder, foreign_storage::ParquetDetectStringEncoder, foreign_storage::ParquetStringNoneEncoder, foreign_storage::ParquetGeospatialEncoder, foreign_storage::ParquetStringEncoder< V >, foreign_storage::ParquetStringImportEncoder, and foreign_storage::ParquetArrayEncoder.
|
inlinestaticprotected |
Definition at line 96 of file ParquetEncoder.h.
References SQLTypeInfo::get_elem_type(), Data_Namespace::AbstractBuffer::initEncoder(), and SQLTypeInfo::is_array().
Referenced by getRowGroupMetadata(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::getRowGroupMetadata().
|
inlinevirtual |
Reimplemented in foreign_storage::ParquetArrayEncoder.
Definition at line 76 of file ParquetEncoder.h.
References validate_metadata_stats_.
Referenced by foreign_storage::ParquetArrayEncoder::disableMetadataStatsValidation().
|
inline |
Definition at line 74 of file ParquetEncoder.h.
References invalid_indices_.
|
inlinevirtual |
Reimplemented in foreign_storage::TypedParquetInPlaceEncoder< V, T, NullType >, foreign_storage::TypedParquetInPlaceEncoder< int64_t, int32_t, NullType >, foreign_storage::TypedParquetInPlaceEncoder< V, V >, foreign_storage::ParquetStringEncoder< V >, foreign_storage::ParquetArrayEncoder, and foreign_storage::ParquetFixedLengthArrayEncoder.
Definition at line 51 of file ParquetEncoder.h.
References createMetadata(), report::stats, foreign_storage::validate_and_get_column_metadata_statistics(), validate_metadata_stats_, and validateNullCount().
Referenced by foreign_storage::ParquetStringEncoder< V >::getRowGroupMetadata().
|
inlinevirtual |
Reimplemented in foreign_storage::ParquetArrayEncoder.
Definition at line 80 of file ParquetEncoder.h.
References column_type_.
Referenced by foreign_storage::ParquetArrayEncoder::initializeColumnType().
|
inlinevirtual |
Reimplemented in foreign_storage::ParquetArrayEncoder.
Definition at line 78 of file ParquetEncoder.h.
References is_error_tracking_enabled_.
Referenced by foreign_storage::ParquetArrayEncoder::initializeErrorTracking().
|
inlinestaticprotected |
Definition at line 107 of file ParquetEncoder.h.
Referenced by validateNullCount().
|
inlinestaticprotected |
Definition at line 114 of file ParquetEncoder.h.
References SQLTypeInfo::get_notnull(), and throwNotNullViolation().
Referenced by getRowGroupMetadata(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::getRowGroupMetadata().
|
protected |
Definition at line 85 of file ParquetEncoder.h.
Referenced by foreign_storage::ParquetArrayEncoder::appendArraysToBuffer(), foreign_storage::ParquetStringNoneEncoder::appendData(), foreign_storage::ParquetInPlaceEncoder::appendData(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::appendData(), foreign_storage::ParquetVariableLengthArrayEncoder::appendLastArrayOffset(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::eraseInvalidIndicesInBuffer(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::reserve(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::setDetectBufferConverterType(), foreign_storage::ParquetVariableLengthArrayEncoder::setFirstOffsetForBuffer(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::TypedParquetInPlaceEncoder().
|
protected |
Definition at line 91 of file ParquetEncoder.h.
Referenced by foreign_storage::ParquetStringNoneEncoder::appendData(), foreign_storage::ParquetGeospatialEncoder::appendData(), foreign_storage::ParquetStringEncoder< V >::appendDataTrackErrors(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::appendDataTrackErrors(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::elementToString(), initializeColumnType(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::integralTypeToString(), foreign_storage::ParquetArrayEncoder::processLastArray(), foreign_storage::ParquetDetectStringEncoder::validateUsingEncodersColumnType(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::validateUsingEncodersColumnType().
|
protected |
Definition at line 90 of file ParquetEncoder.h.
Referenced by foreign_storage::ParquetStringNoneEncoder::appendData(), foreign_storage::ParquetGeospatialEncoder::appendData(), foreign_storage::ParquetDetectStringEncoder::appendData(), foreign_storage::ParquetStringEncoder< V >::appendDataTrackErrors(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::appendDataTrackErrors().
|
protected |
Definition at line 89 of file ParquetEncoder.h.
Referenced by foreign_storage::ParquetStringNoneEncoder::appendData(), foreign_storage::ParquetGeospatialEncoder::appendData(), foreign_storage::ParquetDetectStringEncoder::appendData(), foreign_storage::ParquetStringEncoder< V >::appendDataTrackErrors(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::appendDataTrackErrors(), getRejectedRowIndices(), and foreign_storage::ParquetArrayEncoder::processLastArray().
|
protected |
Definition at line 88 of file ParquetEncoder.h.
Referenced by foreign_storage::ParquetStringNoneEncoder::appendData(), foreign_storage::ParquetGeospatialEncoder::appendData(), foreign_storage::ParquetDetectStringEncoder::appendData(), foreign_storage::ParquetArrayEncoder::appendDataTrackErrors(), foreign_storage::ParquetStringEncoder< V >::appendDataTrackErrors(), foreign_storage::ParquetGeospatialEncoder::appendDataTrackErrors(), foreign_storage::ParquetStringNoneEncoder::appendDataTrackErrors(), foreign_storage::ParquetDetectStringEncoder::appendDataTrackErrors(), foreign_storage::TypedParquetInPlaceEncoder< V, V >::appendDataTrackErrors(), initializeErrorTracking(), foreign_storage::ParquetArrayEncoder::processLastArray(), foreign_storage::ParquetArrayEncoder::resetLastArrayMetadata(), and foreign_storage::ParquetArrayEncoder::updateMetadataForAppendedArrayItem().
|
protected |
Definition at line 94 of file ParquetEncoder.h.
Referenced by disableMetadataStatsValidation(), getRowGroupMetadata(), and foreign_storage::TypedParquetInPlaceEncoder< V, V >::getRowGroupMetadata().