OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderInfo Class Reference

#include <RenderInfo.h>

+ Collaboration diagram for RenderInfo:

Public Member Functions

 RenderInfo (const ::QueryRenderer::RenderSessionKey &in_render_session_key, const 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 isForcedNonInSitu () const
 
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 RenderQueryOptionsgetRenderQueryOptions () const
 
bool setInSituDataIfUnset (const bool is_in_situ_data)
 
void reset (std::unique_ptr< RenderQueryOptions > in_query_opts, const bool in_force_non_in_situ_data)
 

Public Attributes

std::unique_ptr
< RenderAllocatorMap
render_allocator_map_ptr
 
const
::QueryRenderer::RenderSessionKey & 
render_session_key
 
std::vector< std::shared_ptr
< Analyzer::TargetEntry > > 
targets
 
std::unordered_set< std::string > table_names
 

Private Types

enum  InSituState { InSituState::UNSET, InSituState::IS_IN_SITU, InSituState::IS_NOT_IN_SITU }
 

Private Attributes

InSituState in_situ_data
 
bool force_non_in_situ_data
 
bool cuda_using_buffers_
 
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 29 of file RenderInfo.h.

Member Enumeration Documentation

enum RenderInfo::InSituState
strongprivate
Enumerator
UNSET 
IS_IN_SITU 
IS_NOT_IN_SITU 

Definition at line 72 of file RenderInfo.h.

72 { UNSET, IS_IN_SITU, IS_NOT_IN_SITU };

Constructor & Destructor Documentation

RenderInfo::RenderInfo ( const ::QueryRenderer::RenderSessionKey &  in_render_session_key,
const RenderQueryOptions in_render_query_opts,
const bool  force_non_in_situ_data = false 
)

Definition at line 20 of file RenderInfo.cpp.

References CHECK.

23  : render_session_key(in_render_session_key)
24  , render_query_opts_(in_render_query_opts) {
25  CHECK(false);
26 }
const ::QueryRenderer::RenderSessionKey & render_session_key
Definition: RenderInfo.h:32
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:85
#define CHECK(condition)
Definition: Logger.h:223

Member Function Documentation

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

Definition at line 78 of file RenderInfo.cpp.

References CHECK.

78  {
79  CHECK(false);
80 }
#define CHECK(condition)
Definition: Logger.h:223
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQuerySsboLayout ( ) const

Definition at line 92 of file RenderInfo.cpp.

References CHECK.

92  {
93  CHECK(false);
94  return nullptr;
95 }
#define CHECK(condition)
Definition: Logger.h:223
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQueryVboLayout ( ) const

Definition at line 82 of file RenderInfo.cpp.

References CHECK.

82  {
83  CHECK(false);
84  return nullptr;
85 }
#define CHECK(condition)
Definition: Logger.h:223
const RenderQueryOptions & RenderInfo::getRenderQueryOptions ( ) const

Definition at line 107 of file RenderInfo.cpp.

References CHECK, and render_query_opts_.

107  {
108  CHECK(false);
109  return render_query_opts_;
110 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:85
#define CHECK(condition)
Definition: Logger.h:223
const Catalog_Namespace::SessionInfo & RenderInfo::getSessionInfo ( ) const

Definition at line 28 of file RenderInfo.cpp.

References CHECK, and CPU.

28  {
29  CHECK(false);
30  static const Catalog_Namespace::SessionInfo tmp(
31  nullptr,
32  Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false, false),
34  "");
35  return tmp;
36 }
#define CHECK(condition)
Definition: Logger.h:223
std::shared_ptr< Catalog_Namespace::SessionInfo const > RenderInfo::getSessionInfoPtr ( ) const

Definition at line 38 of file RenderInfo.cpp.

References UNREACHABLE.

39  {
40  UNREACHABLE();
41  return {};
42 }
#define UNREACHABLE()
Definition: Logger.h:267
bool RenderInfo::hasInSituData ( ) const

Definition at line 58 of file RenderInfo.cpp.

References CHECK.

58  {
59  CHECK(false);
60  return false;
61 }
#define CHECK(condition)
Definition: Logger.h:223
bool RenderInfo::isForcedNonInSitu ( ) const

Definition at line 48 of file RenderInfo.cpp.

References CHECK.

48  {
49  CHECK(false);
50  return false;
51 }
#define CHECK(condition)
Definition: Logger.h:223
bool RenderInfo::isInSituDataFlagUnset ( ) const

Definition at line 63 of file RenderInfo.cpp.

References CHECK.

63  {
64  CHECK(false);
65  return false;
66 }
#define CHECK(condition)
Definition: Logger.h:223
bool RenderInfo::isPotentialInSituRender ( ) const

Definition at line 68 of file RenderInfo.cpp.

References CHECK.

Referenced by anonymous_namespace{RelAlgExecutor.cpp}::can_output_columnar(), RelAlgExecutor::canUseResultsetCache(), Executor::executePlanWithoutGroupBy(), RelAlgExecutor::executeWorkUnit(), QueryExecutionContext::QueryExecutionContext(), and ExecutionKernel::runImpl().

68  {
69  CHECK(false);
70  return false;
71 }
#define CHECK(condition)
Definition: Logger.h:223

+ Here is the caller graph for this function:

bool RenderInfo::queryRanWithInSituData ( ) const

Definition at line 53 of file RenderInfo.cpp.

References CHECK.

53  {
54  CHECK(false);
55  return false;
56 }
#define CHECK(condition)
Definition: Logger.h:223
void RenderInfo::reset ( std::unique_ptr< RenderQueryOptions in_query_opts,
const bool  in_force_non_in_situ_data 
)

Definition at line 112 of file RenderInfo.cpp.

References CHECK.

113  {
114  CHECK(false);
115 }
#define CHECK(condition)
Definition: Logger.h:223
void RenderInfo::setForceNonInSituData ( )

Definition at line 44 of file RenderInfo.cpp.

References CHECK.

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

44  {
45  CHECK(false);
46 }
#define CHECK(condition)
Definition: Logger.h:223

+ Here is the caller graph for this function:

bool RenderInfo::setInSituDataIfUnset ( const bool  is_in_situ_data)

Definition at line 102 of file RenderInfo.cpp.

References CHECK.

102  {
103  CHECK(false);
104  return false;
105 }
#define CHECK(condition)
Definition: Logger.h:223
void RenderInfo::setQuerySsboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  ssbo_layout)

Definition at line 97 of file RenderInfo.cpp.

References CHECK.

98  {
99  CHECK(false);
100 }
#define CHECK(condition)
Definition: Logger.h:223
void RenderInfo::setQueryVboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  vbo_layout)

Definition at line 87 of file RenderInfo.cpp.

References CHECK.

88  {
89  CHECK(false);
90 }
#define CHECK(condition)
Definition: Logger.h:223
bool RenderInfo::useCudaBuffers ( ) const

Definition at line 73 of file RenderInfo.cpp.

References CHECK.

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

73  {
74  CHECK(false);
75  return false;
76 }
#define CHECK(condition)
Definition: Logger.h:223

+ Here is the caller graph for this function:

Member Data Documentation

bool RenderInfo::cuda_using_buffers_
private

Definition at line 81 of file RenderInfo.h.

bool RenderInfo::force_non_in_situ_data
private

Definition at line 80 of file RenderInfo.h.

InSituState RenderInfo::in_situ_data
private

Definition at line 74 of file RenderInfo.h.

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

Definition at line 84 of file RenderInfo.h.

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

Definition at line 83 of file RenderInfo.h.

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

Definition at line 85 of file RenderInfo.h.

Referenced by getRenderQueryOptions().

const ::QueryRenderer::RenderSessionKey& RenderInfo::render_session_key

Definition at line 32 of file RenderInfo.h.

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

Definition at line 39 of file RenderInfo.h.

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

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