OmniSciDB  a5dc49c757
 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 40 of file ResultSetBuilder.cpp.

References CHECK.

Referenced by ResultSetLogicalValuesBuilder::build().

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

+ 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->blockSize() : 0,
37  executor ? executor->gridSize() : 0);
38 }

+ Here is the caller graph for this function:


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