OmniSciDB  04ee39c94c
RenderInfo Class Reference

#include <RenderInfo.h>

+ Collaboration diagram for RenderInfo:

Public Member Functions

 RenderInfo (const std::shared_ptr< const ::QueryRenderer::RenderSession > in_render_session, RenderQueryOptions in_render_query_opts, const bool force_non_in_situ_data=false)
 
const Catalog_Namespace::SessionInfogetSessionInfo () const
 
void setForceNonInSituData ()
 
bool queryRanWithInSituData () const
 
bool hasInSituData () const
 
bool isInSituDataFlagUnset () const
 
bool couldRunInSitu () const
 
bool isPotentialInSituRender () const
 
bool useCudaBuffers () const
 
void disableCudaBuffers ()
 
std::shared_ptr< QueryRenderer::QueryDataLayout > getQueryVboLayout () const
 
void setQueryVboLayout (const std::shared_ptr< QueryRenderer::QueryDataLayout > &vbo_layout)
 
std::shared_ptr< QueryRenderer::QueryDataLayout > getQuerySsboLayout () const
 
void setQuerySsboLayout (const std::shared_ptr< QueryRenderer::QueryDataLayout > &ssbo_layout)
 
const RenderQueryOptionsgetRenderQueryOptsPtr () const
 
const RenderQueryOptionsgetRenderQueryOpts () const
 
bool setInSituDataIfUnset (const bool is_in_situ_data)
 
void reset (RenderQueryOptions in_query_opts, const bool disallow_in_situ_only_if_final_ED_is_aggregate_in)
 

Public Attributes

std::unique_ptr< RenderAllocatorMaprender_allocator_map_ptr
 
const std::shared_ptr< const ::QueryRenderer::RenderSession > render_session
 
std::shared_ptr< RowSetMemoryOwnerrow_set_mem_owner
 
std::vector< std::shared_ptr< Analyzer::TargetEntry > > targets
 
std::unordered_set< std::string > table_names
 
bool disallow_in_situ_only_if_final_ED_is_aggregate
 

Private Types

enum  InSituState { InSituState::UNSET, InSituState::IS_IN_SITU, InSituState::IS_NOT_IN_SITU }
 
enum  RendererBufferMode { RendererBufferMode::CUDA, RendererBufferMode::GL }
 

Private Attributes

InSituState in_situ_data
 
bool force_non_in_situ_data
 
RendererBufferMode buffer_mode_
 
std::shared_ptr< QueryRenderer::QueryDataLayout > query_vbo_layout
 
std::shared_ptr< QueryRenderer::QueryDataLayout > query_ssbo_layout
 
RenderQueryOptions render_query_opts_
 

Detailed Description

Definition at line 30 of file RenderInfo.h.

Member Enumeration Documentation

◆ InSituState

enum RenderInfo::InSituState
strongprivate
Enumerator
UNSET 
IS_IN_SITU 
IS_NOT_IN_SITU 

Definition at line 75 of file RenderInfo.h.

75 { UNSET, IS_IN_SITU, IS_NOT_IN_SITU };

◆ RendererBufferMode

enum RenderInfo::RendererBufferMode
strongprivate
Enumerator
CUDA 
GL 

Definition at line 86 of file RenderInfo.h.

86 { CUDA, GL };

Constructor & Destructor Documentation

◆ RenderInfo()

RenderInfo::RenderInfo ( const std::shared_ptr< const ::QueryRenderer::RenderSession >  in_render_session,
RenderQueryOptions  in_render_query_opts,
const bool  force_non_in_situ_data = false 
)

Definition at line 20 of file RenderInfo.cpp.

References CHECK.

24  : render_session(in_render_session)
25  , render_query_opts_(std::move(in_render_query_opts)) {
26  CHECK(false);
27 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:92
const std::shared_ptr< const ::QueryRenderer::RenderSession > render_session
Definition: RenderInfo.h:33
#define CHECK(condition)
Definition: Logger.h:187

Member Function Documentation

◆ couldRunInSitu()

bool RenderInfo::couldRunInSitu ( ) const

◆ disableCudaBuffers()

void RenderInfo::disableCudaBuffers ( )

Definition at line 65 of file RenderInfo.cpp.

References CHECK.

65  {
66  CHECK(false);
67 }
#define CHECK(condition)
Definition: Logger.h:187

◆ getQuerySsboLayout()

std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQuerySsboLayout ( ) const

Definition at line 79 of file RenderInfo.cpp.

References CHECK.

79  {
80  CHECK(false);
81  return nullptr;
82 }
#define CHECK(condition)
Definition: Logger.h:187

◆ getQueryVboLayout()

std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQueryVboLayout ( ) const

Definition at line 69 of file RenderInfo.cpp.

References CHECK.

69  {
70  CHECK(false);
71  return nullptr;
72 }
#define CHECK(condition)
Definition: Logger.h:187

◆ getRenderQueryOpts()

const RenderQueryOptions & RenderInfo::getRenderQueryOpts ( ) const

Definition at line 99 of file RenderInfo.cpp.

References CHECK, and render_query_opts_.

99  {
100  CHECK(false);
101  return render_query_opts_;
102 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:92
#define CHECK(condition)
Definition: Logger.h:187

◆ getRenderQueryOptsPtr()

const RenderQueryOptions * RenderInfo::getRenderQueryOptsPtr ( ) const

Definition at line 94 of file RenderInfo.cpp.

References CHECK.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

94  {
95  CHECK(false);
96  return nullptr;
97 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ getSessionInfo()

const Catalog_Namespace::SessionInfo & RenderInfo::getSessionInfo ( ) const

Definition at line 29 of file RenderInfo.cpp.

References CHECK, and CPU.

29  {
30  CHECK(false);
31  static const Catalog_Namespace::SessionInfo tmp(
33  return tmp;
34 }
#define CHECK(condition)
Definition: Logger.h:187

◆ hasInSituData()

bool RenderInfo::hasInSituData ( ) const

Definition at line 45 of file RenderInfo.cpp.

References CHECK.

45  {
46  CHECK(false);
47  return false;
48 }
#define CHECK(condition)
Definition: Logger.h:187

◆ isInSituDataFlagUnset()

bool RenderInfo::isInSituDataFlagUnset ( ) const

Definition at line 50 of file RenderInfo.cpp.

References CHECK.

50  {
51  CHECK(false);
52  return false;
53 }
#define CHECK(condition)
Definition: Logger.h:187

◆ isPotentialInSituRender()

bool RenderInfo::isPotentialInSituRender ( ) const

Definition at line 55 of file RenderInfo.cpp.

References CHECK.

Referenced by QueryCompilationDescriptor::compile(), Executor::compileWorkUnit(), Executor::executePlanWithoutGroupBy(), RelAlgExecutor::executeWorkUnit(), QueryMemoryDescriptor::init(), and QueryExecutionContext::QueryExecutionContext().

55  {
56  CHECK(false);
57  return false;
58 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ queryRanWithInSituData()

bool RenderInfo::queryRanWithInSituData ( ) const

Definition at line 40 of file RenderInfo.cpp.

References CHECK.

40  {
41  CHECK(false);
42  return false;
43 }
#define CHECK(condition)
Definition: Logger.h:187

◆ reset()

void RenderInfo::reset ( RenderQueryOptions  in_query_opts,
const bool  disallow_in_situ_only_if_final_ED_is_aggregate_in 
)

Definition at line 104 of file RenderInfo.cpp.

References CHECK.

105  {
106  CHECK(false);
107 }
#define CHECK(condition)
Definition: Logger.h:187

◆ setForceNonInSituData()

void RenderInfo::setForceNonInSituData ( )

Definition at line 36 of file RenderInfo.cpp.

References CHECK.

Referenced by RelAlgExecutor::executeRelAlgQuery(), and RelAlgExecutor::handleOutOfMemoryRetry().

36  {
37  CHECK(false);
38 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ setInSituDataIfUnset()

bool RenderInfo::setInSituDataIfUnset ( const bool  is_in_situ_data)

Definition at line 89 of file RenderInfo.cpp.

References CHECK.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry(), and QueryMemoryDescriptor::init().

89  {
90  CHECK(false);
91  return false;
92 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ setQuerySsboLayout()

void RenderInfo::setQuerySsboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  ssbo_layout)

Definition at line 84 of file RenderInfo.cpp.

References CHECK.

85  {
86  CHECK(false);
87 }
#define CHECK(condition)
Definition: Logger.h:187

◆ setQueryVboLayout()

void RenderInfo::setQueryVboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  vbo_layout)

Definition at line 74 of file RenderInfo.cpp.

References CHECK.

75  {
76  CHECK(false);
77 }
#define CHECK(condition)
Definition: Logger.h:187

◆ useCudaBuffers()

bool RenderInfo::useCudaBuffers ( ) const

Definition at line 60 of file RenderInfo.cpp.

References CHECK.

Referenced by Executor::executePlanWithGroupBy(), Executor::executePlanWithoutGroupBy(), and QueryMemoryInitializer::QueryMemoryInitializer().

60  {
61  CHECK(false);
62  return false;
63 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

Member Data Documentation

◆ buffer_mode_

RendererBufferMode RenderInfo::buffer_mode_
private

Definition at line 87 of file RenderInfo.h.

◆ disallow_in_situ_only_if_final_ED_is_aggregate

bool RenderInfo::disallow_in_situ_only_if_final_ED_is_aggregate

Definition at line 42 of file RenderInfo.h.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

◆ force_non_in_situ_data

bool RenderInfo::force_non_in_situ_data
private

Definition at line 84 of file RenderInfo.h.

◆ in_situ_data

InSituState RenderInfo::in_situ_data
private

Definition at line 77 of file RenderInfo.h.

◆ query_ssbo_layout

std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::query_ssbo_layout
private

Definition at line 91 of file RenderInfo.h.

◆ query_vbo_layout

std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::query_vbo_layout
private

Definition at line 90 of file RenderInfo.h.

◆ render_allocator_map_ptr

std::unique_ptr<RenderAllocatorMap> RenderInfo::render_allocator_map_ptr

◆ render_query_opts_

RenderQueryOptions RenderInfo::render_query_opts_
private

Definition at line 92 of file RenderInfo.h.

Referenced by getRenderQueryOpts().

◆ render_session

const std::shared_ptr<const ::QueryRenderer::RenderSession> RenderInfo::render_session

Definition at line 33 of file RenderInfo.h.

◆ row_set_mem_owner

std::shared_ptr<RowSetMemoryOwner> RenderInfo::row_set_mem_owner

Definition at line 34 of file RenderInfo.h.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

◆ table_names

std::unordered_set<std::string> RenderInfo::table_names

Definition at line 41 of file RenderInfo.h.

Referenced by MapDHandler::parse_to_ra().

◆ targets

std::vector<std::shared_ptr<Analyzer::TargetEntry> > RenderInfo::targets

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