OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 39 of file ResultSetBuilder.h.

Member Function Documentation

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

Definition at line 41 of file ResultSetBuilder.cpp.

References CHECK.

Referenced by ResultSetLogicalValuesBuilder::build().

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

+ 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 26 of file ResultSetBuilder.cpp.

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

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

+ Here is the caller graph for this function:


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