OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResultSetBuilder Class Referenceabstract

#include <ResultSetBuilder.h>

+ Inheritance diagram for ResultSetBuilder:

Public Member Functions

virtual ResultSetbuild ()=0
 

Protected Member Functions

ResultSetmakeResultSet (const std::vector< TargetInfo > &targets, const ExecutorDeviceType device_type, const QueryMemoryDescriptor &query_mem_desc, const std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const Executor *executor)
 
void addVarlenBuffer (ResultSet *result_set, std::vector< std::string > &varlen_storage)
 

Detailed Description

Definition at line 41 of file ResultSetBuilder.h.

Member Function Documentation

void ResultSetBuilder::addVarlenBuffer ( ResultSet result_set,
std::vector< std::string > &  varlen_storage 
)
protected

Definition at line 43 of file ResultSetBuilder.cpp.

References CHECK.

Referenced by ResultSetLogicalValuesBuilder::build().

44  {
45  CHECK(result_set->serialized_varlen_buffer_.size() == 0);
46 
47  // init with an empty vector
48  result_set->serialized_varlen_buffer_.emplace_back(std::vector<std::string>());
49 
50  // copy the values into the empty vector
51  result_set->serialized_varlen_buffer_.front().assign(varlen_storage.begin(),
52  varlen_storage.end());
53 }
#define CHECK(condition)
Definition: Logger.h:206

+ Here is the caller graph for this function:

virtual ResultSet* ResultSetBuilder::build ( )
pure virtual
ResultSet * ResultSetBuilder::makeResultSet ( const std::vector< TargetInfo > &  targets,
const ExecutorDeviceType  device_type,
const QueryMemoryDescriptor query_mem_desc,
const std::shared_ptr< RowSetMemoryOwner row_set_mem_owner,
const Executor executor 
)
protected

Definition at line 28 of file ResultSetBuilder.cpp.

Referenced by ResultSetDefaultBuilder::build(), and ResultSetLogicalValuesBuilder::build().

33  {
34  return new ResultSet(targets,
35  device_type,
36  query_mem_desc,
37  row_set_mem_owner,
38  executor ? executor->getCatalog() : nullptr,
39  executor ? executor->blockSize() : 0,
40  executor ? executor->gridSize() : 0);
41 }

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: