OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::SessionInfo
getSessionInfo () const
 
std::shared_ptr
< Catalog_Namespace::SessionInfo
const > 
getSessionInfoPtr () 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 in_force_non_in_situ_data, const bool in_disallow_in_situ_only_if_final_ED_is_aggregate)
 

Public Attributes

std::unique_ptr
< RenderAllocatorMap
render_allocator_map_ptr
 
const std::shared_ptr< const
::QueryRenderer::RenderSession > 
render_session
 
std::shared_ptr
< RowSetMemoryOwner
row_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

enum RenderInfo::InSituState
strongprivate
Enumerator
UNSET 
IS_IN_SITU 
IS_NOT_IN_SITU 

Definition at line 77 of file RenderInfo.h.

77 { UNSET, IS_IN_SITU, IS_NOT_IN_SITU };
enum RenderInfo::RendererBufferMode
strongprivate
Enumerator
CUDA 
GL 

Definition at line 88 of file RenderInfo.h.

88 { CUDA, GL };

Constructor & Destructor Documentation

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 }
CHECK(cgen_state)
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:94
const std::shared_ptr< const ::QueryRenderer::RenderSession > render_session
Definition: RenderInfo.h:33

+ Here is the call graph for this function:

Member Function Documentation

bool RenderInfo::couldRunInSitu ( ) const
void RenderInfo::disableCudaBuffers ( )

Definition at line 71 of file RenderInfo.cpp.

References CHECK().

71  {
72  CHECK(false);
73 }
CHECK(cgen_state)

+ Here is the call graph for this function:

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

Definition at line 85 of file RenderInfo.cpp.

References CHECK().

85  {
86  CHECK(false);
87  return nullptr;
88 }
CHECK(cgen_state)

+ Here is the call graph for this function:

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

Definition at line 75 of file RenderInfo.cpp.

References CHECK().

75  {
76  CHECK(false);
77  return nullptr;
78 }
CHECK(cgen_state)

+ Here is the call graph for this function:

const RenderQueryOptions & RenderInfo::getRenderQueryOpts ( ) const

Definition at line 105 of file RenderInfo.cpp.

References CHECK(), and render_query_opts_.

105  {
106  CHECK(false);
107  return render_query_opts_;
108 }
CHECK(cgen_state)
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:94

+ Here is the call graph for this function:

const RenderQueryOptions * RenderInfo::getRenderQueryOptsPtr ( ) const

Definition at line 100 of file RenderInfo.cpp.

References CHECK().

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

100  {
101  CHECK(false);
102  return nullptr;
103 }
CHECK(cgen_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 29 of file RenderInfo.cpp.

References CHECK(), and CPU.

+ Here is the call graph for this function:

std::shared_ptr< Catalog_Namespace::SessionInfo const > RenderInfo::getSessionInfoPtr ( ) const

Definition at line 36 of file RenderInfo.cpp.

References UNREACHABLE.

37  {
38  UNREACHABLE();
39  return {};
40 }
#define UNREACHABLE()
Definition: Logger.h:234
bool RenderInfo::hasInSituData ( ) const

Definition at line 51 of file RenderInfo.cpp.

References CHECK().

51  {
52  CHECK(false);
53  return false;
54 }
CHECK(cgen_state)

+ Here is the call graph for this function:

bool RenderInfo::isInSituDataFlagUnset ( ) const

Definition at line 56 of file RenderInfo.cpp.

References CHECK().

56  {
57  CHECK(false);
58  return false;
59 }
CHECK(cgen_state)

+ Here is the call graph for this function:

bool RenderInfo::isPotentialInSituRender ( ) const

Definition at line 61 of file RenderInfo.cpp.

References CHECK().

Referenced by QueryCompilationDescriptor::compile(), Executor::executePlanWithoutGroupBy(), RelAlgExecutor::executeWorkUnit(), QueryExecutionContext::QueryExecutionContext(), and Executor::ExecutionDispatch::runImpl().

61  {
62  CHECK(false);
63  return false;
64 }
CHECK(cgen_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool RenderInfo::queryRanWithInSituData ( ) const

Definition at line 46 of file RenderInfo.cpp.

References CHECK().

46  {
47  CHECK(false);
48  return false;
49 }
CHECK(cgen_state)

+ Here is the call graph for this function:

void RenderInfo::reset ( RenderQueryOptions  in_query_opts,
const bool  in_force_non_in_situ_data,
const bool  in_disallow_in_situ_only_if_final_ED_is_aggregate 
)

Definition at line 110 of file RenderInfo.cpp.

References CHECK().

112  {
113  CHECK(false);
114 }
CHECK(cgen_state)

+ Here is the call graph for this function:

void RenderInfo::setForceNonInSituData ( )

Definition at line 42 of file RenderInfo.cpp.

References CHECK().

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

42  {
43  CHECK(false);
44 }
CHECK(cgen_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool RenderInfo::setInSituDataIfUnset ( const bool  is_in_situ_data)

Definition at line 95 of file RenderInfo.cpp.

References CHECK().

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

95  {
96  CHECK(false);
97  return false;
98 }
CHECK(cgen_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 90 of file RenderInfo.cpp.

References CHECK().

91  {
92  CHECK(false);
93 }
CHECK(cgen_state)

+ Here is the call graph for this function:

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

Definition at line 80 of file RenderInfo.cpp.

References CHECK().

81  {
82  CHECK(false);
83 }
CHECK(cgen_state)

+ Here is the call graph for this function:

bool RenderInfo::useCudaBuffers ( ) const

Definition at line 66 of file RenderInfo.cpp.

References CHECK().

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

66  {
67  CHECK(false);
68  return false;
69 }
CHECK(cgen_state)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

RendererBufferMode RenderInfo::buffer_mode_
private

Definition at line 89 of file RenderInfo.h.

bool RenderInfo::disallow_in_situ_only_if_final_ED_is_aggregate

Definition at line 42 of file RenderInfo.h.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

bool RenderInfo::force_non_in_situ_data
private

Definition at line 86 of file RenderInfo.h.

InSituState RenderInfo::in_situ_data
private

Definition at line 79 of file RenderInfo.h.

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

Definition at line 93 of file RenderInfo.h.

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

Definition at line 92 of file RenderInfo.h.

std::unique_ptr<RenderAllocatorMap> RenderInfo::render_allocator_map_ptr
RenderQueryOptions RenderInfo::render_query_opts_
private

Definition at line 94 of file RenderInfo.h.

Referenced by getRenderQueryOpts().

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

Definition at line 33 of file RenderInfo.h.

std::shared_ptr<RowSetMemoryOwner> RenderInfo::row_set_mem_owner

Definition at line 34 of file RenderInfo.h.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

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

Definition at line 41 of file RenderInfo.h.

Referenced by MapDHandler::parse_to_ra().

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

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