OmniSciDB
a5dc49c757
|
#include <heavydbTypes.h>
Public Member Functions | |
void | set_output_array_values_total_number (int32_t index, int64_t output_array_values_total_number) |
void | set_output_item_values_total_number (int32_t index, int64_t output_item_values_total_number) |
void | set_output_row_size (int64_t num_rows) |
void | disable_output_allocations () |
void | enable_output_allocations () |
int32_t | error_message (const char *message) |
template<typename T > | |
void | set_metadata (const std::string &key, const T &value) |
template<typename T > | |
void | get_metadata (const std::string &key, T &value) |
int32_t | getNewDictDbId () |
int32_t | getNewDictId () |
StringDictionaryProxy * | getStringDictionaryProxy (int32_t db_id, int32_t dict_id) |
std::string | getString (int32_t db_id, int32_t dict_id, int32_t string_id) |
int32_t | getOrAddTransient (int32_t db_id, int32_t dict_id, std::string str) |
int8_t * | makeBuffer (int64_t element_count, int64_t element_size) |
std::string | toString () const |
TableFunctionManager (const TableFunctionExecutionUnit &exe_unit, Executor *executor, std::vector< const int8_t * > &col_buf_ptrs, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, bool is_singleton) | |
size_t | get_ncols () const |
size_t | get_nrows () const |
void | check_thread_id () const |
void | set_output_column (int32_t index, int8_t *ptr) |
void | set_output_item_values_total_number (int32_t index, int64_t output_item_values_total_number) |
void | set_output_array_values_total_number (int32_t index, int64_t output_array_values_total_number) |
void | allocate_output_buffers (int64_t output_num_rows) |
const char * | get_error_message () const |
void | set_error_message (const char *msg) |
void | set_metadata (const char *key, const uint8_t *raw_bytes, const size_t num_bytes, const TableFunctionMetadataType value_type) const |
void | get_metadata (const char *key, const uint8_t *&raw_bytes, size_t &num_bytes, TableFunctionMetadataType &value_type) const |
int32_t | getNewDictDbId () |
int32_t | getNewDictId () |
int8_t * | getStringDictionaryProxy (int32_t db_id, int32_t dict_id) |
std::string | getString (int32_t db_id, int32_t dict_id, int32_t string_id) |
const int32_t | getOrAddTransient (int32_t db_id, int32_t dict_id, const std::string &str) |
int8_t * | makeBuffer (int64_t element_count, int64_t element_size) |
bool | isSingleton () const |
~TableFunctionManager () | |
Static Public Member Functions | |
static TableFunctionManager * | get_singleton () |
static TableFunctionManager *& | get_singleton_internal () |
Public Attributes | |
bool output_allocations_disabled | false |
std::unique_ptr < QueryMemoryInitializer > | query_buffers |
Private Member Functions | |
void | lock () |
void | unlock () |
Static Private Member Functions | |
static void | set_singleton (TableFunctionManager *instance) |
Private Attributes | |
const TableFunctionExecutionUnit & | exe_unit_ |
Executor * | executor_ |
std::vector< const int8_t * > & | col_buf_ptrs_ |
std::shared_ptr < RowSetMemoryOwner > | row_set_mem_owner_ |
std::vector< int64_t * > | output_col_buf_ptrs |
size_t | output_num_rows_ |
std::vector< int64_t > | output_item_values_total_number_ |
std::vector< int8_t * > | output_column_ptrs |
bool | is_singleton_ |
std::thread::id | thread_id_ |
std::string | error_message_ |
Definition at line 356 of file heavydbTypes.h.
|
inline |
Definition at line 62 of file TableFunctionManager.h.
References get_ncols(), isSingleton(), output_col_buf_ptrs, output_column_ptrs, output_item_values_total_number_, and set_singleton().
|
inline |
Definition at line 334 of file TableFunctionManager.h.
References isSingleton(), and set_singleton().
|
inline |
Definition at line 132 of file TableFunctionManager.h.
References QueryMemoryDescriptor::addColSlotInfo(), QueryMemoryDescriptor::addColSlotInfoFlatBuffer(), align_to_int64(), CHECK, CHECK_EQ, check_thread_id(), col_buf_ptrs_, CPU, exe_unit_, executor_, get_ncols(), getFlatBufferSize(), table_functions::TableFunction::getName(), initializeFlatBuffer(), FlatBufferManager::isFlatBuffer(), kARRAY, kENCODING_NONE, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kPOINT, kPOLYGON, kTEXT, output_col_buf_ptrs, output_column_ptrs, output_item_values_total_number_, output_num_rows_, query_buffers, query_mem_desc, row_set_mem_owner_, Column< T >::size(), TableFunctionExecutionUnit::table_func, heavyai::TableFunction, TableFunctionExecutionUnit::target_exprs, to_string(), toString(), and UNREACHABLE.
|
inline |
Definition at line 94 of file TableFunctionManager.h.
References thread_id_.
Referenced by allocate_output_buffers(), get_error_message(), set_error_message(), and set_output_column().
|
inline |
Definition at line 379 of file heavydbTypes.h.
Referenced by r2_score_impl().
|
inline |
Definition at line 381 of file heavydbTypes.h.
Referenced by ct_test_allocator(), and r2_score_impl().
|
inline |
Definition at line 383 of file heavydbTypes.h.
References TableFunctionManager_error_message().
|
inline |
Definition at line 266 of file TableFunctionManager.h.
References check_thread_id(), and error_message_.
|
inline |
Definition at line 284 of file TableFunctionManager.h.
References CHECK, and row_set_mem_owner_.
|
inline |
Definition at line 397 of file heavydbTypes.h.
References heavydb.dtypes::T, and TableFunctionManager_get_metadata().
Referenced by tf_metadata_getter__cpu_template(), and tf_metadata_getter_bad__cpu_template().
|
inline |
Definition at line 89 of file TableFunctionManager.h.
References exe_unit_, and TableFunctionExecutionUnit::target_exprs.
Referenced by allocate_output_buffers(), set_output_column(), set_output_item_values_total_number(), and TableFunctionManager().
|
inline |
|
inlinestatic |
Definition at line 357 of file heavydbTypes.h.
References TableFunctionManager_get_singleton().
Referenced by ct_sleep1__cpu_(), ct_sleep2(), and sum_along_row__cpu_template().
|
inlinestatic |
Definition at line 340 of file TableFunctionManager.h.
References lockmgr::instance().
Referenced by set_singleton().
|
inline |
Definition at line 292 of file TableFunctionManager.h.
References executor_, row_set_mem_owner_, and TRANSIENT_DICT_ID.
|
inline |
Definition at line 411 of file heavydbTypes.h.
References TableFunctionManager_getNewDictDbId().
Referenced by array_asarray__cpu_template().
|
inline |
Definition at line 298 of file TableFunctionManager.h.
References executor_, row_set_mem_owner_, and TRANSIENT_DICT_ID.
|
inline |
Definition at line 414 of file heavydbTypes.h.
References TableFunctionManager_getNewDictId().
Referenced by array_asarray__cpu_template().
|
inline |
Definition at line 315 of file TableFunctionManager.h.
References executor_, and row_set_mem_owner_.
|
inline |
Definition at line 426 of file heavydbTypes.h.
References TableFunctionManager_getOrAddTransient().
Referenced by array_asarray__cpu_template().
|
inline |
Definition at line 309 of file TableFunctionManager.h.
References executor_, and row_set_mem_owner_.
|
inline |
Definition at line 422 of file heavydbTypes.h.
References TableFunctionManager_getString().
Referenced by array_asarray__cpu_template().
|
inline |
Definition at line 304 of file TableFunctionManager.h.
References executor_, and row_set_mem_owner_.
|
inline |
Definition at line 417 of file heavydbTypes.h.
References TableFunctionManager_getStringDictionaryProxy().
|
inline |
Definition at line 332 of file TableFunctionManager.h.
References is_singleton_.
Referenced by TableFunctionManager(), and ~TableFunctionManager().
|
inlineprivate |
Definition at line 346 of file TableFunctionManager.h.
References TableFunctionManager_singleton_mutex.
Referenced by set_singleton().
|
inline |
Definition at line 323 of file TableFunctionManager.h.
References checked_malloc(), and row_set_mem_owner_.
|
inline |
Definition at line 430 of file heavydbTypes.h.
References TableFunctionManager_makeBuffer().
|
inline |
Definition at line 271 of file TableFunctionManager.h.
References check_thread_id(), and error_message_.
|
inline |
Definition at line 276 of file TableFunctionManager.h.
References CHECK, and row_set_mem_owner_.
|
inline |
Definition at line 388 of file heavydbTypes.h.
References TableFunctionManager_set_metadata().
Referenced by GeoRaster< T, Z >::setMetadata(), tf_metadata_setter__cpu_template(), tf_metadata_setter_repeated__cpu_template(), and tf_metadata_setter_size_mismatch__cpu_template().
|
inline |
Definition at line 127 of file TableFunctionManager.h.
References set_output_item_values_total_number().
|
inline |
Definition at line 361 of file heavydbTypes.h.
References TableFunctionManager_set_output_array_values_total_number().
Referenced by array_append__cpu_template(), array_asarray__cpu_template(), array_concat__cpu_template(), array_copier__cpu_template(), array_split__cpu_template(), GeoRaster< T, Z >::outputDenseColumns(), CrossSectionTableFunctions::tf_cross_section_1d_impl(), GDALTableFunctions::tf_raster_contour_impl(), and GDALTableFunctions::tf_raster_contour_rasterize_impl().
|
inline |
Definition at line 102 of file TableFunctionManager.h.
References CHECK, check_thread_id(), get_ncols(), and output_column_ptrs.
|
inline |
Definition at line 113 of file TableFunctionManager.h.
References CHECK_EQ, CHECK_LE, CHECK_LT, get_ncols(), output_item_values_total_number_, and output_num_rows_.
|
inline |
Definition at line 367 of file heavydbTypes.h.
References TableFunctionManager_set_output_item_values_total_number().
Referenced by ct_copy__generic_cpu_template(), ct_linestringn__cpu_(), ct_make_linestring2__cpu_(), ct_make_multipolygon__cpu_(), ct_make_polygon3__cpu_(), ct_polygonn__cpu_(), ct_to_multilinestring__cpu_(), ct_to_polygon__cpu_(), set_output_array_values_total_number(), and CrossSectionTableFunctions::tf_cross_section_2d_impl().
|
inline |
Definition at line 373 of file heavydbTypes.h.
References TableFunctionManager_set_output_row_size().
Referenced by array_append__cpu_template(), array_asarray__cpu_template(), array_concat__cpu_template(), array_copier__cpu_template(), array_split__cpu_template(), ct_add_size_and_mul_alpha(), ct_coords__cpu_(), ct_copy__generic_cpu_template(), ct_copy_and_add_size(), ct_cursor_named_args__cpu_(), ct_linestringn__cpu_(), ct_make_linestring2__cpu_(), ct_make_multipolygon__cpu_(), ct_make_polygon3__cpu_(), ct_pointn__cpu_template(), ct_polygonn__cpu_(), ct_pushdown_projection__cpu_template(), ct_pushdown_stats__cpu_template(), ct_scalar_named_args__cpu_(), ct_shift__cpu_(), ct_sleep2(), ct_sparse_add(), ct_string_concat__cpu_(), ct_substr__cpu_(), ct_synthesize_new_dict__cpu_(), ct_test_allocator(), ct_test_calcite_casting_bigint__cpu_(), ct_test_calcite_casting_char__cpu_(), ct_test_calcite_casting_columnlist__template_cpu_(), ct_test_calcite_casting_double__cpu_(), ct_test_calcite_casting_timestamp__cpu_(), ct_test_preflight_multicursor_qe227__cpu_(), ct_test_preflight_singlecursor_qe227__cpu_(), ct_test_runtime_libs_add__cpu_template_(), ct_test_runtime_libs_sub__cpu_template_(), ct_test_string_default_arg__cpu_(), ct_throw_if_gt_100__cpu_template(), ct_timestamp_add_interval__template(), ct_timestamp_add_offset(), ct_timestamp_column_list_input(), ct_timestamp_extract(), ct_timestamp_truncate(), ct_to_multilinestring__cpu_(), ct_to_polygon__cpu_(), ct_union_pushdown_projection__cpu_template(), ct_union_pushdown_stats__cpu_template(), dbscan__cpu_template(), decision_tree_reg_impl(), gbt_reg_fit_impl(), generate_random_strings__cpu_(), generate_series__cpu_template(), get_decision_trees__cpu_1(), kmeans__cpu_template(), linear_reg_coefs__cpu_1(), linear_reg_fit_impl(), Mandelbrot::mandelbrot_cpu_template(), ml_reg_predict_impl(), GeoRaster< T, Z >::outputDenseColumns(), GeoRaster< T, Z >::outputDenseColumnsAndFill(), pca_fit_impl(), r2_score_impl(), random_forest_reg_fit_impl(), random_forest_reg_var_importance__cpu_1(), row_copier_columnlist__cpu__(), row_repeater__cpu_template(), supported_ml_frameworks__cpu_(), CrossSectionTableFunctions::tf_cross_section_1d_impl(), CrossSectionTableFunctions::tf_cross_section_2d_impl(), tf_metadata_getter__cpu_template(), tf_metadata_getter_bad__cpu_template(), tf_metadata_setter__cpu_template(), tf_metadata_setter_repeated__cpu_template(), tf_metadata_setter_size_mismatch__cpu_template(), GDALTableFunctions::tf_raster_contour_impl(), GDALTableFunctions::tf_raster_contour_rasterize_impl(), tf_test_torch_generate_random_column(), tf_test_torch_load_model(), tf_test_torch_regression(), and tf_torch_raster_obj_detect__cpu_template().
|
inlinestaticprivate |
Definition at line 349 of file TableFunctionManager.h.
References CHECK, get_singleton_internal(), lockmgr::instance(), lock(), and unlock().
Referenced by TableFunctionManager(), and ~TableFunctionManager().
|
inline |
Definition at line 436 of file heavydbTypes.h.
References run_benchmark_import::result, and typeName().
Referenced by allocate_output_buffers().
|
inlineprivate |
Definition at line 347 of file TableFunctionManager.h.
References TableFunctionManager_singleton_mutex.
Referenced by set_singleton().
|
private |
Definition at line 365 of file TableFunctionManager.h.
Referenced by allocate_output_buffers().
|
private |
Definition at line 382 of file TableFunctionManager.h.
Referenced by get_error_message(), and set_error_message().
|
private |
Definition at line 362 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), and get_ncols().
|
private |
Definition at line 363 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), getNewDictDbId(), getNewDictId(), getOrAddTransient(), getString(), and getStringDictionaryProxy().
bool output_allocations_disabled TableFunctionManager::false |
Definition at line 445 of file heavydbTypes.h.
|
private |
Definition at line 378 of file TableFunctionManager.h.
Referenced by isSingleton().
|
private |
Definition at line 369 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), and TableFunctionManager().
|
private |
Definition at line 376 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), set_output_column(), and TableFunctionManager().
|
private |
Definition at line 374 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), set_output_item_values_total_number(), and TableFunctionManager().
|
private |
Definition at line 371 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), get_nrows(), and set_output_item_values_total_number().
std::unique_ptr<QueryMemoryInitializer> TableFunctionManager::query_buffers |
Definition at line 60 of file TableFunctionManager.h.
Referenced by allocate_output_buffers().
|
private |
Definition at line 367 of file TableFunctionManager.h.
Referenced by allocate_output_buffers(), get_metadata(), getNewDictDbId(), getNewDictId(), getOrAddTransient(), getString(), getStringDictionaryProxy(), makeBuffer(), and set_metadata().
|
private |
Definition at line 380 of file TableFunctionManager.h.
Referenced by check_thread_id().