OmniSciDB
a5dc49c757
|
#include <TableFunctionExecutionContext.h>
Public Member Functions | |
TableFunctionExecutionContext (std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner) | |
TableFunctionExecutionContext (const TableFunctionExecutionContext &)=delete | |
TableFunctionExecutionContext & | operator= (const TableFunctionExecutionContext &)=delete |
ResultSetPtr | execute (const TableFunctionExecutionUnit &exe_unit, const std::vector< InputTableInfo > &table_infos, const std::shared_ptr< CompilationContext > &compilation_context, const ColumnFetcher &column_fetcher, const ExecutorDeviceType device_type, Executor *executor, bool is_pre_launch_udtf) |
Private Member Functions | |
void | launchPreCodeOnCpu (const TableFunctionExecutionUnit &exe_unit, const std::shared_ptr< CpuCompilationContext > &compilation_context, std::vector< const int8_t * > &col_buf_ptrs, std::vector< int64_t > &col_sizes, std::vector< const int8_t * > &input_str_dict_proxy_ptrs, const size_t elem_count, Executor *executor) |
ResultSetPtr | launchCpuCode (const TableFunctionExecutionUnit &exe_unit, const std::shared_ptr< CpuCompilationContext > &compilation_context, std::vector< const int8_t * > &col_buf_ptrs, std::vector< int64_t > &col_sizes, std::vector< const int8_t * > &input_str_dict_proxy_ptrs, const size_t elem_count, std::vector< int8_t * > &output_str_dict_proxy_ptrs, Executor *executor) |
ResultSetPtr | launchGpuCode (const TableFunctionExecutionUnit &exe_unit, const std::shared_ptr< GpuCompilationContext > &compilation_context, std::vector< const int8_t * > &col_buf_ptrs, std::vector< int64_t > &col_sizes, std::vector< const int8_t * > &input_str_dict_proxy_ptrs, const size_t elem_count, std::vector< int8_t * > &output_str_dict_proxy_ptrs, const int device_id, Executor *executor) |
Private Attributes | |
std::shared_ptr < RowSetMemoryOwner > | row_set_mem_owner_ |
Definition at line 27 of file TableFunctionExecutionContext.h.
|
inline |
Definition at line 29 of file TableFunctionExecutionContext.h.
|
delete |
ResultSetPtr TableFunctionExecutionContext::execute | ( | const TableFunctionExecutionUnit & | exe_unit, |
const std::vector< InputTableInfo > & | table_infos, | ||
const std::shared_ptr< CompilationContext > & | compilation_context, | ||
const ColumnFetcher & | column_fetcher, | ||
const ExecutorDeviceType | device_type, | ||
Executor * | executor, | ||
bool | is_pre_launch_udtf | ||
) |
Definition at line 104 of file TableFunctionExecutionContext.cpp.
References anonymous_namespace{TableFunctionExecutionContext.cpp}::append_literal_buffer(), CHECK, CHECK_EQ, ColumnFetcher::columnarized_table_cache_, table_functions::TableFunction::containsPreFlightFn(), CPU, Data_Namespace::CPU_LEVEL, DEBUG_TIMER, get_bit_width(), ColumnFetcher::getOneColumnFragment(), getQueryEngineCudaStreamForDevice(), GPU, Data_Namespace::GPU_LEVEL, table_functions::TableFunction::hasOutputSizeIndependentOfInputSize(), TableFunctionExecutionUnit::input_exprs, is_null(), launchCpuCode(), launchGpuCode(), launchPreCodeOnCpu(), TableFunctionExecutionUnit::table_func, TableFunctionExecutionUnit::target_exprs, and UNREACHABLE.
Referenced by Executor::executeTableFunction().
|
private |
Definition at line 495 of file TableFunctionExecutionContext.cpp.
References align_to_int64(), CHECK, CHECK_EQ, DEBUG_TIMER, GenericError, anonymous_namespace{TableFunctionExecutionContext.cpp}::get_output_row_count(), FlatBufferManager::getBufferSize(), NotAnError, row_set_mem_owner_, and to_string().
Referenced by execute().
|
private |
Definition at line 662 of file TableFunctionExecutionContext.cpp.
References QueryMemoryDescriptor::addColSlotInfo(), CHECK, CHECK_EQ, checkCudaErrors(), anonymous_namespace{TableFunctionExecutionContext.cpp}::COL_BUFFERS, anonymous_namespace{TableFunctionExecutionContext.cpp}::COL_SIZES, DEBUG_TIMER, anonymous_namespace{TableFunctionExecutionContext.cpp}::ERROR_BUFFER, anonymous_namespace{TableFunctionExecutionContext.cpp}::get_output_row_count(), getQueryEngineCudaStreamForDevice(), GPU, table_functions::TableFunction::hasTableFunctionSpecifiedParameter(), anonymous_namespace{TableFunctionExecutionContext.cpp}::KERNEL_PARAM_COUNT, anonymous_namespace{TableFunctionExecutionContext.cpp}::MANAGER, anonymous_namespace{TableFunctionExecutionContext.cpp}::OUTPUT_BUFFERS, anonymous_namespace{TableFunctionExecutionContext.cpp}::OUTPUT_ROW_COUNT, query_mem_desc, row_set_mem_owner_, TableFunctionExecutionUnit::table_func, heavyai::TableFunction, TableFunctionExecutionUnit::target_exprs, to_string(), UNREACHABLE, and VLOG.
Referenced by execute().
|
private |
Definition at line 345 of file TableFunctionExecutionContext.cpp.
References CHECK, DEBUG_TIMER, GenericError, NotAnError, row_set_mem_owner_, and to_string().
Referenced by execute().
|
delete |
|
private |
Definition at line 75 of file TableFunctionExecutionContext.h.
Referenced by launchCpuCode(), launchGpuCode(), and launchPreCodeOnCpu().