OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ColumnFetcher.cpp} Namespace Reference

Functions

const ColumnarResultscolumnarize_result (std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const ResultSetPtr &result, const size_t thread_idx, const size_t executor_id, const int frag_id)
 
std::string getMemoryLevelString (Data_Namespace::MemoryLevel memoryLevel)
 

Function Documentation

const ColumnarResults* anonymous_namespace{ColumnFetcher.cpp}::columnarize_result ( std::shared_ptr< RowSetMemoryOwner row_set_mem_owner,
const ResultSetPtr result,
const size_t  thread_idx,
const size_t  executor_id,
const int  frag_id 
)
inline

Definition at line 30 of file ColumnFetcher.cpp.

References CHECK_EQ, get_logical_type_info(), and INJECT_TIMER.

Referenced by ColumnFetcher::getOneColumnFragment(), and ColumnFetcher::getResultSetColumn().

35  {
37  CHECK_EQ(0, frag_id);
38 
39  std::vector<SQLTypeInfo> col_types;
40  for (size_t i = 0; i < result->colCount(); ++i) {
41  col_types.push_back(get_logical_type_info(result->getColType(i)));
42  }
43  return new ColumnarResults(
44  row_set_mem_owner, *result, result->colCount(), col_types, executor_id, thread_idx);
45 }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
SQLTypeInfo get_logical_type_info(const SQLTypeInfo &type_info)
Definition: sqltypes.h:1235
const ColumnarResults * columnarize_result(std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const ResultSetPtr &result, const size_t thread_idx, const size_t executor_id, const int frag_id)
#define INJECT_TIMER(DESC)
Definition: measure.h:93

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string anonymous_namespace{ColumnFetcher.cpp}::getMemoryLevelString ( Data_Namespace::MemoryLevel  memoryLevel)

Definition at line 47 of file ColumnFetcher.cpp.

References Data_Namespace::CPU_LEVEL, Data_Namespace::DISK_LEVEL, and Data_Namespace::GPU_LEVEL.

Referenced by ColumnFetcher::linearizeColumnFragments(), ColumnFetcher::linearizeFixedLenArrayColFrags(), and ColumnFetcher::linearizeVarLenArrayColFrags().

47  {
48  switch (memoryLevel) {
49  case DISK_LEVEL:
50  return "DISK_LEVEL";
51  case GPU_LEVEL:
52  return "GPU_LEVEL";
53  case CPU_LEVEL:
54  return "CPU_LEVEL";
55  default:
56  return "UNKNOWN";
57  }
58 }

+ Here is the caller graph for this function: