OmniSciDB
a5dc49c757
|
#include "InputMetadata.h"
#include "Execute.h"
#include "../Fragmenter/Fragmenter.h"
#include <tbb/parallel_for.h>
#include <tbb/task_arena.h>
#include <future>
Go to the source code of this file.
Classes | |
union | anonymous_namespace{InputMetadata.cpp}::Number64 |
Namespaces | |
anonymous_namespace{InputMetadata.cpp} | |
Variables | |
bool | g_enable_data_recycler |
bool | g_use_chunk_metadata_cache |
Fragmenter_Namespace::TableInfo build_table_info | ( | const std::vector< const TableDescriptor * > & | shard_tables | ) |
Definition at line 44 of file InputMetadata.cpp.
References CHECK, Fragmenter_Namespace::TableInfo::fragments, and Fragmenter_Namespace::TableInfo::setPhysicalNumTuples().
Referenced by InputTableInfoCache::getTableInfo().
void compute_table_function_col_chunk_stats | ( | std::shared_ptr< ChunkMetadata > & | chunk_metadata, |
const T * | values_buffer, | ||
const size_t | values_count, | ||
const T | null_val | ||
) |
Definition at line 142 of file InputMetadata.cpp.
References max_inputs_per_thread, threading_serial::parallel_for(), and heavydb.dtypes::T.
Referenced by synthesize_metadata_table_function().
size_t get_frag_count_of_table | ( | const shared::TableKey & | table_key, |
Executor * | executor | ||
) |
Definition at line 500 of file InputMetadata.cpp.
References CHECK, CHECK_GE, and shared::TableKey::table_id.
Referenced by RelAlgExecutor::getOuterFragmentCount().
std::vector<InputTableInfo> get_table_infos | ( | const std::vector< InputDescriptor > & | input_descs, |
Executor * | executor | ||
) |
Definition at line 513 of file InputMetadata.cpp.
References anonymous_namespace{InputMetadata.cpp}::collect_table_infos().
Referenced by RelAlgExecutor::computeWindow(), RelAlgExecutor::createAggregateWorkUnit(), RelAlgExecutor::createCompoundWorkUnit(), RelAlgExecutor::createFilterWorkUnit(), RelAlgExecutor::createProjectWorkUnit(), RelAlgExecutor::createTableFunctionWorkUnit(), RelAlgExecutor::createUnionWorkUnit(), RelAlgExecutor::executeDelete(), RelAlgExecutor::executeTableFunction(), RelAlgExecutor::executeUpdate(), RelAlgExecutor::executeWorkUnit(), TableOptimizer::getDeletedColumnStats(), RelAlgExecutor::getFilteredCountAll(), RelAlgExecutor::getFilterSelectivity(), RelAlgExecutor::getNDVEstimation(), RelAlgExecutor::handleOutOfMemoryRetry(), TableOptimizer::recomputeColumnMetadata(), and RelAlgExecutor::selectFiltersToBePushedDown().
std::vector<InputTableInfo> get_table_infos | ( | const RelAlgExecutionUnit & | ra_exe_unit, |
Executor * | executor | ||
) |
Definition at line 521 of file InputMetadata.cpp.
References anonymous_namespace{InputMetadata.cpp}::collect_table_infos(), and RelAlgExecutionUnit::input_descs.
ChunkMetadataMap synthesize_metadata | ( | const ResultSet * | rows | ) |
Definition at line 368 of file InputMetadata.cpp.
References CHECK, CHECK_LT, cpu_threads(), Encoder::Create(), DEBUG_TIMER, inline_fp_null_val(), inline_int_null_val(), kDOUBLE, kFLOAT, threading_serial::parallel_for(), report::rows, synthesize_metadata_table_function(), heavyai::TableFunction, result_set::use_parallel_algorithms(), and anonymous_namespace{InputMetadata.cpp}::uses_int_meta().
Referenced by Fragmenter_Namespace::FragmentInfo::getChunkMetadataMap().
ChunkMetadataMap synthesize_metadata_table_function | ( | const ResultSet * | rows | ) |
Definition at line 227 of file InputMetadata.cpp.
References CHECK, CHECK_EQ, compute_table_function_col_chunk_stats(), FlatBufferManager::getBufferSize(), inline_fixed_encoding_null_val(), inline_fp_null_value< double >(), inline_fp_null_value< float >(), FlatBufferManager::isFlatBuffer(), kBIGINT, kBOOLEAN, kDOUBLE, kENCODING_DICT, kENCODING_NONE, kFLOAT, kINT, kLINESTRING, kMULTILINESTRING, kMULTIPOLYGON, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIMESTAMP, kTINYINT, heavyai::TableFunction, and UNREACHABLE.
Referenced by synthesize_metadata().
bool g_enable_data_recycler |
Definition at line 158 of file Execute.cpp.
bool g_use_chunk_metadata_cache |
Definition at line 161 of file Execute.cpp.