OmniSciDB  d2f719934e
 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 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, const bool in_disallow_in_situ_only_if_final_ED_is_aggregate)
 

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
 
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 29 of file RenderInfo.h.

Member Enumeration Documentation

enum RenderInfo::InSituState
strongprivate
Enumerator
UNSET 
IS_IN_SITU 
IS_NOT_IN_SITU 

Definition at line 73 of file RenderInfo.h.

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

Definition at line 84 of file RenderInfo.h.

84 { CUDA, GL };

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:90
#define CHECK(condition)
Definition: Logger.h:211

Member Function Documentation

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

Definition at line 73 of file RenderInfo.cpp.

References CHECK.

73  {
74  CHECK(false);
75 }
#define CHECK(condition)
Definition: Logger.h:211
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQuerySsboLayout ( ) const

Definition at line 87 of file RenderInfo.cpp.

References CHECK.

87  {
88  CHECK(false);
89  return nullptr;
90 }
#define CHECK(condition)
Definition: Logger.h:211
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQueryVboLayout ( ) const

Definition at line 77 of file RenderInfo.cpp.

References CHECK.

77  {
78  CHECK(false);
79  return nullptr;
80 }
#define CHECK(condition)
Definition: Logger.h:211
const RenderQueryOptions & RenderInfo::getRenderQueryOptions ( ) const

Definition at line 102 of file RenderInfo.cpp.

References CHECK, and render_query_opts_.

102  {
103  CHECK(false);
104  return render_query_opts_;
105 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:90
#define CHECK(condition)
Definition: Logger.h:211
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:211
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:255
bool RenderInfo::hasInSituData ( ) 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:211
bool RenderInfo::isInSituDataFlagUnset ( ) 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:211
bool RenderInfo::isPotentialInSituRender ( ) const

Definition at line 63 of file RenderInfo.cpp.

References CHECK.

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

63  {
64  CHECK(false);
65  return false;
66 }
#define CHECK(condition)
Definition: Logger.h:211

+ Here is the caller graph for this function:

bool RenderInfo::queryRanWithInSituData ( ) 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:211
void RenderInfo::reset ( std::unique_ptr< 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 107 of file RenderInfo.cpp.

References CHECK.

109  {
110  CHECK(false);
111 }
#define CHECK(condition)
Definition: Logger.h:211
void RenderInfo::setForceNonInSituData ( )

Definition at line 44 of file RenderInfo.cpp.

References CHECK.

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

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

+ Here is the caller graph for this function:

bool RenderInfo::setInSituDataIfUnset ( const bool  is_in_situ_data)

Definition at line 97 of file RenderInfo.cpp.

References CHECK.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

97  {
98  CHECK(false);
99  return false;
100 }
#define CHECK(condition)
Definition: Logger.h:211

+ Here is the caller graph for this function:

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

Definition at line 92 of file RenderInfo.cpp.

References CHECK.

93  {
94  CHECK(false);
95 }
#define CHECK(condition)
Definition: Logger.h:211
void RenderInfo::setQueryVboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  vbo_layout)

Definition at line 82 of file RenderInfo.cpp.

References CHECK.

83  {
84  CHECK(false);
85 }
#define CHECK(condition)
Definition: Logger.h:211
bool RenderInfo::useCudaBuffers ( ) const

Definition at line 68 of file RenderInfo.cpp.

References CHECK.

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

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

+ Here is the caller graph for this function:

Member Data Documentation

RendererBufferMode RenderInfo::buffer_mode_
private

Definition at line 85 of file RenderInfo.h.

bool RenderInfo::disallow_in_situ_only_if_final_ED_is_aggregate

Definition at line 40 of file RenderInfo.h.

Referenced by RelAlgExecutor::executeRelAlgQueryNoRetry().

bool RenderInfo::force_non_in_situ_data
private

Definition at line 82 of file RenderInfo.h.

InSituState RenderInfo::in_situ_data
private

Definition at line 75 of file RenderInfo.h.

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

Definition at line 89 of file RenderInfo.h.

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

Definition at line 88 of file RenderInfo.h.

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

Definition at line 90 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: