OmniSciDB
a5dc49c757
|
#include <ChunkMetadata.h>
Public Member Functions | |
ChunkMetadata (const SQLTypeInfo &sql_type, const size_t num_bytes, const size_t num_elements, const ChunkStats &chunk_stats) | |
ChunkMetadata () | |
template<typename T > | |
void | fillChunkStats (const T min, const T max, const bool has_nulls) |
void | fillChunkStats (const Datum min, const Datum max, const bool has_nulls) |
bool | operator== (const ChunkMetadata &that) const |
bool | isPlaceholder () const |
Public Attributes | |
SQLTypeInfo | sqlType |
size_t | numBytes |
size_t | numElements |
ChunkStats | chunkStats |
Definition at line 33 of file ChunkMetadata.h.
|
inline |
Definition at line 39 of file ChunkMetadata.h.
|
inline |
Definition at line 48 of file ChunkMetadata.h.
|
inline |
Definition at line 51 of file ChunkMetadata.h.
References Datum::bigintval, chunkStats, Datum::doubleval, Datum::floatval, SQLTypeInfo::get_compression(), SQLTypeInfo::get_type(), ChunkStats::has_nulls, Datum::intval, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kENCODING_DICT, kFLOAT, kINT, kNUMERIC, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, ChunkStats::max, ChunkStats::min, Datum::smallintval, sqlType, and Datum::tinyintval.
Referenced by anonymous_namespace{TableOptimizer.cpp}::set_metadata_from_results(), and foreign_storage::ParquetStringEncoder< V >::updateMetadataStats().
|
inline |
Definition at line 112 of file ChunkMetadata.h.
References chunkStats, ChunkStats::has_nulls, ChunkStats::max, and ChunkStats::min.
|
inline |
Definition at line 130 of file ChunkMetadata.h.
References chunkStats, decimal_to_int_type(), extract_int_type_from_datum(), SQLTypeInfo::get_compression(), SQLTypeInfo::get_type(), ChunkStats::has_nulls, SQLTypeInfo::is_decimal(), kBIGINT, kBOOLEAN, kCHAR, kDATE, kENCODING_DICT, kINT, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, ChunkStats::max, ChunkStats::min, numElements, sqlType, and run_benchmark_import::type.
|
inline |
Definition at line 118 of file ChunkMetadata.h.
References chunkStats, DatumEqual(), SQLTypeInfo::get_elem_type(), ChunkStats::has_nulls, SQLTypeInfo::is_array(), ChunkStats::max, ChunkStats::min, numBytes, numElements, and sqlType.
ChunkStats ChunkMetadata::chunkStats |
Definition at line 37 of file ChunkMetadata.h.
Referenced by foreign_storage::ParquetStringEncoder< V >::appendData(), fillChunkStats(), isPlaceholder(), operator<<(), operator==(), foreign_storage::ParquetStringEncoder< V >::ParquetStringEncoder(), foreign_storage::anonymous_namespace{ForeignStorageCache.cpp}::set_metadata_for_buffer(), and foreign_storage::ParquetStringEncoder< V >::updateMetadataStats().
size_t ChunkMetadata::numBytes |
Definition at line 35 of file ChunkMetadata.h.
Referenced by operator<<(), operator==(), and foreign_storage::anonymous_namespace{ForeignStorageCache.cpp}::set_metadata_for_buffer().
size_t ChunkMetadata::numElements |
Definition at line 36 of file ChunkMetadata.h.
Referenced by isPlaceholder(), operator<<(), operator==(), and foreign_storage::anonymous_namespace{ForeignStorageCache.cpp}::set_metadata_for_buffer().
SQLTypeInfo ChunkMetadata::sqlType |
Definition at line 34 of file ChunkMetadata.h.
Referenced by fillChunkStats(), isPlaceholder(), operator<<(), operator==(), and foreign_storage::anonymous_namespace{ForeignStorageCache.cpp}::set_metadata_for_buffer().