OmniSciDB  a987f07e93
 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
 
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 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< 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_
 

Additional Inherited Members

- Protected Attributes inherited from heavyai::InSituFlagsOwnerInterface
InSituFlags insitu_flags_
 

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

70 { 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:33
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:83
#define CHECK(condition)
Definition: Logger.h:289

Member Function Documentation

void RenderInfo::disableCudaBuffers ( )

Definition at line 58 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 45 of file RenderInfo.cpp.

References CHECK.

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

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

+ Here is the caller graph for this function:

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

Definition at line 72 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 62 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 82 of file RenderInfo.cpp.

References CHECK, and render_query_opts_.

82  {
83  CHECK(false);
84  return render_query_opts_;
85 }
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:83
#define CHECK(condition)
Definition: Logger.h:289
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, false),
35  "");
36  return tmp;
37 }
#define CHECK(condition)
Definition: Logger.h:289
std::shared_ptr< Catalog_Namespace::SessionInfo const > RenderInfo::getSessionInfoPtr ( ) const

Definition at line 39 of file RenderInfo.cpp.

References UNREACHABLE.

40  {
41  UNREACHABLE();
42  return {};
43 }
#define UNREACHABLE()
Definition: Logger.h:333
void RenderInfo::reset ( std::unique_ptr< RenderQueryOptions in_query_opts,
const bool  in_force_non_in_situ_data 
)

Definition at line 87 of file RenderInfo.cpp.

References CHECK.

88  {
89  CHECK(false);
90 }
#define CHECK(condition)
Definition: Logger.h:289
bool RenderInfo::setInSituDataIfUnset ( const bool  is_in_situ_data)
void RenderInfo::setNonInSitu ( )

Definition at line 49 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 77 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 67 of file RenderInfo.cpp.

References CHECK.

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

Definition at line 53 of file RenderInfo.cpp.

References CHECK.

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

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

+ Here is the caller graph for this function:

Member Data Documentation

bool RenderInfo::cuda_using_buffers_
private

Definition at line 79 of file RenderInfo.h.

bool RenderInfo::force_non_in_situ_data
private

Definition at line 78 of file RenderInfo.h.

InSituState RenderInfo::in_situ_data
private

Definition at line 72 of file RenderInfo.h.

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

Definition at line 82 of file RenderInfo.h.

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

Definition at line 81 of file RenderInfo.h.

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

Definition at line 83 of file RenderInfo.h.

Referenced by getRenderQueryOptions().

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

Definition at line 33 of file RenderInfo.h.

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

Definition at line 40 of file RenderInfo.h.

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

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