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

#include <RenderInfo.h>

+ Inheritance diagram for RenderInfo:
+ Collaboration diagram for RenderInfo:

Public Member Functions

 RenderInfo (const ::QueryRenderer::RenderSessionKey &in_render_session_key, const RenderQueryOptions &in_render_query_opts, const heavyai::InSituFlags in_insitu_flags=heavyai::InSituFlags::kInSitu)
 
const
Catalog_Namespace::SessionInfo
getSessionInfo () const
 
std::shared_ptr
< Catalog_Namespace::SessionInfo
const > 
getSessionInfoPtr () const
 
void forceNonInSitu ()
 
void setNonInSitu ()
 
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
 
void reset (std::unique_ptr< RenderQueryOptions > in_query_opts, const heavyai::InSituFlags in_insitu_flags)
 
- Public Member Functions inherited from heavyai::InSituFlagsOwnerInterface
 InSituFlagsOwnerInterface (const InSituFlags insitu_flags)
 
InSituFlags getInSituFlags () const
 
bool isForcedNonInSitu () const
 
bool isInSitu () const
 
bool isNonInSitu () const
 
bool couldRunInSitu () const
 

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
< shared::FullyQualifiedTableName
table_names
 

Private Types

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

Private Attributes

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_
 

Additional Inherited Members

- Protected Attributes inherited from heavyai::InSituFlagsOwnerInterface
InSituFlags insitu_flags_
 

Detailed Description

Definition at line 31 of file RenderInfo.h.

Member Enumeration Documentation

enum RenderInfo::InSituState
strongprivate
Enumerator
UNSET 
IS_IN_SITU 
IS_NOT_IN_SITU 

Definition at line 69 of file RenderInfo.h.

69 { 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 heavyai::InSituFlags  in_insitu_flags = heavyai::InSituFlags::kInSitu 
)

Definition at line 20 of file RenderInfo.cpp.

References CHECK.

23  : heavyai::InSituFlagsOwnerInterface(in_insitu_flags)
24  , render_session_key(in_render_session_key)
25  , render_query_opts_(in_render_query_opts) {
26  CHECK(false);
27 }
const ::QueryRenderer::RenderSessionKey & render_session_key
Definition: RenderInfo.h:34
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:75
#define CHECK(condition)
Definition: Logger.h:291

Member Function Documentation

void RenderInfo::disableCudaBuffers ( )

Definition at line 59 of file RenderInfo.cpp.

References CHECK.

59  {
60  CHECK(false);
61 }
#define CHECK(condition)
Definition: Logger.h:291
void RenderInfo::forceNonInSitu ( )

Definition at line 46 of file RenderInfo.cpp.

References CHECK.

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

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

+ Here is the caller graph for this function:

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

Definition at line 73 of file RenderInfo.cpp.

References CHECK.

73  {
74  CHECK(false);
75  return nullptr;
76 }
#define CHECK(condition)
Definition: Logger.h:291
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQueryVboLayout ( ) const

Definition at line 63 of file RenderInfo.cpp.

References CHECK.

63  {
64  CHECK(false);
65  return nullptr;
66 }
#define CHECK(condition)
Definition: Logger.h:291
const RenderQueryOptions & RenderInfo::getRenderQueryOptions ( ) const

Definition at line 83 of file RenderInfo.cpp.

References CHECK, and render_query_opts_.

83  {
84  CHECK(false);
85  return render_query_opts_;
86 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:75
#define CHECK(condition)
Definition: Logger.h:291
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(
32  nullptr,
33  //Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false),
34  Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false, ""),
36  "");
37  return tmp;
38 }
#define CHECK(condition)
Definition: Logger.h:291
std::shared_ptr< Catalog_Namespace::SessionInfo const > RenderInfo::getSessionInfoPtr ( ) const

Definition at line 40 of file RenderInfo.cpp.

References UNREACHABLE.

41  {
42  UNREACHABLE();
43  return {};
44 }
#define UNREACHABLE()
Definition: Logger.h:338
void RenderInfo::reset ( std::unique_ptr< RenderQueryOptions in_query_opts,
const heavyai::InSituFlags  in_insitu_flags 
)

Definition at line 88 of file RenderInfo.cpp.

References CHECK.

89  {
90  CHECK(false);
91 }
#define CHECK(condition)
Definition: Logger.h:291
void RenderInfo::setNonInSitu ( )

Definition at line 50 of file RenderInfo.cpp.

References CHECK.

50  {
51  CHECK(false);
52 }
#define CHECK(condition)
Definition: Logger.h:291
void RenderInfo::setQuerySsboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  ssbo_layout)

Definition at line 78 of file RenderInfo.cpp.

References CHECK.

79  {
80  CHECK(false);
81 }
#define CHECK(condition)
Definition: Logger.h:291
void RenderInfo::setQueryVboLayout ( const std::shared_ptr< QueryRenderer::QueryDataLayout > &  vbo_layout)

Definition at line 68 of file RenderInfo.cpp.

References CHECK.

69  {
70  CHECK(false);
71 }
#define CHECK(condition)
Definition: Logger.h:291
bool RenderInfo::useCudaBuffers ( ) const

Definition at line 54 of file RenderInfo.cpp.

References CHECK.

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

54  {
55  CHECK(false);
56  return false;
57 }
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the caller graph for this function:

Member Data Documentation

bool RenderInfo::cuda_using_buffers_
private

Definition at line 71 of file RenderInfo.h.

bool RenderInfo::force_non_in_situ_data
private

Definition at line 70 of file RenderInfo.h.

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

Definition at line 74 of file RenderInfo.h.

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

Definition at line 73 of file RenderInfo.h.

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

Definition at line 75 of file RenderInfo.h.

Referenced by getRenderQueryOptions().

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

Definition at line 34 of file RenderInfo.h.

std::unordered_set<shared::FullyQualifiedTableName> RenderInfo::table_names

Definition at line 41 of file RenderInfo.h.

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

Definition at line 38 of file RenderInfo.h.

Referenced by build_render_targets().


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