OmniSciDB  0b528656ed
ColumnDescriptor Struct Reference

specifies the content in-memory of a row in the column metadata table More...

#include <ColumnDescriptor.h>

+ Collaboration diagram for ColumnDescriptor:

Public Member Functions

 ColumnDescriptor ()
 
 ColumnDescriptor (const int tableId, const int columnId, const std::string &columnName, const SQLTypeInfo columnType)
 
 ColumnDescriptor (const bool isGeoPhyCol)
 

Public Attributes

int tableId
 
int columnId
 
std::string columnName
 
std::string sourceName
 
SQLTypeInfo columnType
 
std::string chunks
 
bool isSystemCol
 
bool isVirtualCol
 
std::string virtualExpr
 
bool isDeletedCol
 
bool isGeoPhyCol {false}
 

Detailed Description

specifies the content in-memory of a row in the column metadata table

ColumnDescriptor

Definition at line 30 of file ColumnDescriptor.h.

Constructor & Destructor Documentation

◆ ColumnDescriptor() [1/3]

ColumnDescriptor::ColumnDescriptor ( )
inline

Definition at line 43 of file ColumnDescriptor.h.

◆ ColumnDescriptor() [2/3]

ColumnDescriptor::ColumnDescriptor ( const int  tableId,
const int  columnId,
const std::string &  columnName,
const SQLTypeInfo  columnType 
)
inline

Definition at line 44 of file ColumnDescriptor.h.

48  : tableId(tableId)
52  , columnType(columnType)
53  , isSystemCol(false)
54  , isVirtualCol(false)
55  , isDeletedCol(false) {}
std::string sourceName
SQLTypeInfo columnType
std::string columnName

◆ ColumnDescriptor() [3/3]

ColumnDescriptor::ColumnDescriptor ( const bool  isGeoPhyCol)
inline

Definition at line 56 of file ColumnDescriptor.h.

References isGeoPhyCol.

Member Data Documentation

◆ chunks

std::string ColumnDescriptor::chunks

Definition at line 36 of file ColumnDescriptor.h.

Referenced by Catalog_Namespace::Catalog::buildMaps().

◆ columnId

int ColumnDescriptor::columnId

Definition at line 32 of file ColumnDescriptor.h.

Referenced by Catalog_Namespace::Catalog::addColumn(), NumericValueConverter< int64_t, TARGET_TYPE >::addDataBlocksToInsertData(), Fragmenter_Namespace::ScalarChunkConverter< BUFFER_DATA_TYPE, INSERT_DATA_TYPE >::addDataBlocksToInsertData(), Fragmenter_Namespace::FixedLenArrayChunkConverter::addDataBlocksToInsertData(), Fragmenter_Namespace::StringChunkConverter::addDataBlocksToInsertData(), Fragmenter_Namespace::DateChunkConverter< BUFFER_DATA_TYPE >::addDataBlocksToInsertData(), DictionaryValueConverter< TARGET_TYPE >::addDataBlocksToInsertData(), StringValueConverter::addDataBlocksToInsertData(), ArrayValueConverter< ELEMENT_CONVERTER >::addDataBlocksToInsertData(), GeoPointValueConverter::addDataBlocksToInsertData(), GeoLinestringValueConverter::addDataBlocksToInsertData(), GeoPolygonValueConverter::addDataBlocksToInsertData(), GeoMultiPolygonValueConverter::addDataBlocksToInsertData(), Catalog_Namespace::Catalog::addTableToMap(), Parser::InsertStmt::analyze(), Parser::InsertValuesStmt::analyze(), Catalog_Namespace::Catalog::buildMaps(), Fragmenter_Namespace::copyColumnDataOfShard(), Catalog_Namespace::Catalog::createTable(), Catalog_Namespace::Catalog::dropColumn(), Parser::AddColumnStmt::execute(), Parser::DropColumnStmt::execute(), GeoLinestringValueConverter::GeoLinestringValueConverter(), GeoMultiPolygonValueConverter::GeoMultiPolygonValueConverter(), GeoPointValueConverter::GeoPointValueConverter(), GeoPolygonValueConverter::GeoPolygonValueConverter(), get_column_type(), Catalog_Namespace::Catalog::getDeletedColumnIfRowsDeleted(), import_export::Loader::getStringDict(), foreign_storage::ParquetDataWrapper::loadChunk(), anonymous_namespace{ExecutionDispatch.cpp}::need_to_hold_chunk(), DBHandler::populateThriftColumnType(), TableOptimizer::recomputeMetadata(), Catalog_Namespace::Catalog::renameColumn(), import_export::Importer::set_geo_physical_import_buffer(), import_export::Importer::set_geo_physical_import_buffer_columnar(), Fragmenter_Namespace::InsertOrderFragmenter::updateChunkStats(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumnMetadata(), and Catalog_Namespace::Catalog::vacuumDeletedRows().

◆ columnName

std::string ColumnDescriptor::columnName

Definition at line 33 of file ColumnDescriptor.h.

Referenced by import_export::TypedImportBuffer::add_arrow_values(), import_export::TypedImportBuffer::add_value(), import_export::TypedImportBuffer::add_values(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addTableToMap(), Parser::InsertValuesStmt::analyze(), Parser::QuerySpec::analyze_select_clause(), Catalog_Namespace::Catalog::buildMaps(), Catalog_Namespace::Catalog::createTable(), Parser::InsertValuesStmt::determineLeafIndex(), Catalog_Namespace::Catalog::dropColumn(), anonymous_namespace{ArrowImporter.h}::error_context(), Parser::CreateDataframeStmt::execute(), Parser::AddColumnStmt::execute(), Parser::DropColumnStmt::execute(), Parser::CreateTableStmt::executeDryRun(), Catalog_Namespace::Catalog::expandGeoColumn(), import_export::Importer::gdalToColumnDescriptors(), Parser::LocalConnector::getColumnDescriptors(), Catalog_Namespace::Catalog::getDictionary(), anonymous_namespace{RelAlgExecutor.cpp}::insert_one_dict_str(), foreign_storage::csv_file_buffer_parser::is_null_datum(), Parser::InsertIntoTableAsSelectStmt::populateData(), DBHandler::populateThriftColumnType(), foreign_storage::anonymous_namespace{LazyParquetImporter.cpp}::read_parquet_data_into_import_buffer(), Catalog_Namespace::Catalog::removeTableFromMap(), Catalog_Namespace::Catalog::renameColumn(), ddl_utils::set_column_descriptor(), ddl_utils::set_default_encoding(), Catalog_Namespace::Catalog::setColumnDictionary(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), Fragmenter_Namespace::sizeOfRawColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), ddl_utils::validate_and_set_array_size(), ddl_utils::validate_and_set_compressed_encoding(), ddl_utils::validate_and_set_date_encoding(), ddl_utils::validate_and_set_dictionary_encoding(), ddl_utils::validate_and_set_encoding(), ddl_utils::validate_and_set_fixed_encoding(), ddl_utils::validate_and_set_none_encoding(), ddl_utils::validate_and_set_sparse_encoding(), and validate_shared_dictionary().

◆ columnType

SQLTypeInfo ColumnDescriptor::columnType

Definition at line 35 of file ColumnDescriptor.h.

Referenced by import_export::TypedImportBuffer::add_arrow_values(), import_export::TypedImportBuffer::add_value(), import_export::TypedImportBuffer::add_values(), Catalog_Namespace::Catalog::addColumn(), Catalog_Namespace::Catalog::addReferenceToForeignDict(), Parser::InsertStmt::analyze(), Parser::InsertValuesStmt::analyze(), Chunk_NS::Chunk::appendData(), ArrayValueConverter< ELEMENT_CONVERTER >::ArrayValueConverter(), Chunk_NS::Chunk::begin_iterator(), Catalog_Namespace::Catalog::buildMaps(), CodeGenerator::codegenColVar(), Fragmenter_Namespace::FixedLenArrayChunkConverter::convertToColumnarFormat(), TargetValueConverterFactory::create(), ArrayConverterFactory< ELEMENT_FACTORY >::create(), Chunk_NS::Chunk::createChunkBuffer(), ArrowCsvForeignStorage::createDecimalColumn(), ArrowCsvForeignStorage::createDictionaryEncodedColumn(), Catalog_Namespace::Catalog::createTable(), anonymous_namespace{ArrowImporter.h}::data_conversion_error(), Catalog_Namespace::Catalog::delDictionary(), Parser::InsertValuesStmt::determineLeafIndex(), DictionaryValueConverter< TARGET_TYPE >::DictionaryValueConverter(), Parser::AddColumnStmt::execute(), Parser::DropColumnStmt::execute(), Catalog_Namespace::Catalog::expandGeoColumn(), Fragmenter_Namespace::FixedLenArrayChunkConverter::FixedLenArrayChunkConverter(), import_export::Importer::gdalToColumnDescriptors(), get_column_type(), Chunk_NS::Chunk::getChunkBuffer(), Executor::getColLazyFetchInfo(), Parser::LocalConnector::getColumnDescriptors(), Catalog_Namespace::Catalog::getColumnDictDirectory(), Executor::getNumBytesForFetchedRow(), Chunk_NS::Chunk::getNumElemsForBytesInsertData(), import_export::Loader::getStringDict(), Chunk_NS::Chunk::initEncoder(), anonymous_namespace{RelAlgExecutor.cpp}::insert_one_dict_str(), foreign_storage::csv_file_buffer_parser::is_null_datum(), Chunk_NS::Chunk::isChunkOnDevice(), foreign_storage::AllowedParquetMetadataTypeMappings::isColumnMappingSupported(), Fragmenter_Namespace::isDatumVectorData(), Fragmenter_Namespace::isStringVectorData(), foreign_storage::ParquetDataWrapper::loadChunk(), foreign_storage::ParquetDataWrapper::loadMetadataChunk(), anonymous_namespace{ExecutionDispatch.cpp}::need_to_hold_chunk(), TextConverterFactory::operator()(), ArraysConverterFactory::operator()(), Parser::InsertIntoTableAsSelectStmt::populateData(), DBHandler::populateThriftColumnType(), Catalog_Namespace::Catalog::removeTableFromMap(), Catalog_Namespace::Catalog::renameColumn(), ddl_utils::set_column_descriptor(), ddl_utils::set_default_encoding(), import_export::Importer::set_geo_physical_import_buffer(), import_export::Importer::set_geo_physical_import_buffer_columnar(), Catalog_Namespace::Catalog::setColumnDictionary(), Catalog_Namespace::Catalog::setColumnSharedDictionary(), Fragmenter_Namespace::shuffleByIndexes(), Fragmenter_Namespace::sizeOfRawColumn(), Fragmenter_Namespace::sortIndexes(), GeoPointValueConverter::toCompressedCoords(), RelAlgTranslator::translateGeoColumn(), anonymous_namespace{ArrowImporter.h}::type_conversion_error(), import_export::TypedImportBuffer::TypedImportBuffer(), Fragmenter_Namespace::InsertOrderFragmenter::updateChunkStats(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumnMetadata(), ddl_utils::validate_and_set_array_size(), ddl_utils::validate_and_set_compressed_encoding(), ddl_utils::validate_and_set_date_encoding(), ddl_utils::validate_and_set_dictionary_encoding(), ddl_utils::validate_and_set_encoding(), ddl_utils::validate_and_set_fixed_encoding(), ddl_utils::validate_and_set_none_encoding(), ddl_utils::validate_and_set_sparse_encoding(), ddl_utils::validate_and_set_type(), and Parser::anonymous_namespace{ParserNode.cpp}::validate_shard_column_type().

◆ isDeletedCol

◆ isGeoPhyCol

bool ColumnDescriptor::isGeoPhyCol {false}

◆ isSystemCol

◆ isVirtualCol

◆ sourceName

std::string ColumnDescriptor::sourceName

◆ tableId

◆ virtualExpr

std::string ColumnDescriptor::virtualExpr

The documentation for this struct was generated from the following file: