OmniSciDB
94e8789169
|
#include <RenderInfo.h>
Public Member Functions | |
RenderInfo (const std::shared_ptr< const ::QueryRenderer::RenderSession > in_render_session, std::optional< 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 RenderQueryOptions * | getRenderQueryOptions () const |
const std::optional < RenderQueryOptions > & | getOptionalRenderQueryOptions () const |
bool | setInSituDataIfUnset (const bool is_in_situ_data) |
void | reset (std::optional< 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::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 |
std::optional< RenderQueryOptions > | render_query_opts_ |
Definition at line 30 of file RenderInfo.h.
|
strongprivate |
Enumerator | |
---|---|
UNSET | |
IS_IN_SITU | |
IS_NOT_IN_SITU |
Definition at line 76 of file RenderInfo.h.
|
strongprivate |
RenderInfo::RenderInfo | ( | const std::shared_ptr< const ::QueryRenderer::RenderSession > | in_render_session, |
std::optional< RenderQueryOptions > | in_render_query_opts, | ||
const bool | force_non_in_situ_data = false |
||
) |
Definition at line 20 of file RenderInfo.cpp.
References CHECK.
bool RenderInfo::couldRunInSitu | ( | ) | const |
void RenderInfo::disableCudaBuffers | ( | ) |
Definition at line 74 of file RenderInfo.cpp.
References CHECK.
const std::optional< RenderQueryOptions > & RenderInfo::getOptionalRenderQueryOptions | ( | ) | const |
Definition at line 108 of file RenderInfo.cpp.
References CHECK, and render_query_opts_.
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQuerySsboLayout | ( | ) | const |
Definition at line 88 of file RenderInfo.cpp.
References CHECK.
std::shared_ptr< QueryRenderer::QueryDataLayout > RenderInfo::getQueryVboLayout | ( | ) | const |
Definition at line 78 of file RenderInfo.cpp.
References CHECK.
const RenderQueryOptions * RenderInfo::getRenderQueryOptions | ( | ) | const |
const Catalog_Namespace::SessionInfo & RenderInfo::getSessionInfo | ( | ) | const |
Definition at line 29 of file RenderInfo.cpp.
std::shared_ptr< Catalog_Namespace::SessionInfo const > RenderInfo::getSessionInfoPtr | ( | ) | const |
Definition at line 39 of file RenderInfo.cpp.
References UNREACHABLE.
bool RenderInfo::hasInSituData | ( | ) | const |
Definition at line 54 of file RenderInfo.cpp.
References CHECK.
bool RenderInfo::isInSituDataFlagUnset | ( | ) | const |
Definition at line 59 of file RenderInfo.cpp.
References CHECK.
bool RenderInfo::isPotentialInSituRender | ( | ) | const |
Definition at line 64 of file RenderInfo.cpp.
References CHECK.
Referenced by Executor::executePlanWithoutGroupBy(), RelAlgExecutor::executeWorkUnit(), QueryExecutionContext::QueryExecutionContext(), and ExecutionKernel::runImpl().
bool RenderInfo::queryRanWithInSituData | ( | ) | const |
Definition at line 49 of file RenderInfo.cpp.
References CHECK.
void RenderInfo::reset | ( | std::optional< 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 114 of file RenderInfo.cpp.
References CHECK.
void RenderInfo::setForceNonInSituData | ( | ) |
Definition at line 45 of file RenderInfo.cpp.
References CHECK.
Referenced by RelAlgExecutor::executeRelAlgQuery(), and RelAlgExecutor::handleOutOfMemoryRetry().
bool RenderInfo::setInSituDataIfUnset | ( | const bool | is_in_situ_data | ) |
Definition at line 98 of file RenderInfo.cpp.
References CHECK.
void RenderInfo::setQuerySsboLayout | ( | const std::shared_ptr< QueryRenderer::QueryDataLayout > & | ssbo_layout | ) |
Definition at line 93 of file RenderInfo.cpp.
References CHECK.
void RenderInfo::setQueryVboLayout | ( | const std::shared_ptr< QueryRenderer::QueryDataLayout > & | vbo_layout | ) |
Definition at line 83 of file RenderInfo.cpp.
References CHECK.
bool RenderInfo::useCudaBuffers | ( | ) | const |
Definition at line 69 of file RenderInfo.cpp.
References CHECK.
Referenced by Executor::executePlanWithGroupBy(), Executor::executePlanWithoutGroupBy(), and QueryMemoryInitializer::QueryMemoryInitializer().
|
private |
Definition at line 88 of file RenderInfo.h.
bool RenderInfo::disallow_in_situ_only_if_final_ED_is_aggregate |
Definition at line 41 of file RenderInfo.h.
|
private |
Definition at line 85 of file RenderInfo.h.
|
private |
Definition at line 78 of file RenderInfo.h.
|
private |
Definition at line 92 of file RenderInfo.h.
|
private |
Definition at line 91 of file RenderInfo.h.
std::unique_ptr<RenderAllocatorMap> RenderInfo::render_allocator_map_ptr |
Definition at line 32 of file RenderInfo.h.
Referenced by Executor::executePlanWithGroupBy(), Executor::executePlanWithoutGroupBy(), and QueryExecutionContext::QueryExecutionContext().
|
private |
Definition at line 93 of file RenderInfo.h.
Referenced by getOptionalRenderQueryOptions().
const std::shared_ptr<const ::QueryRenderer::RenderSession> RenderInfo::render_session |
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 |
Definition at line 37 of file RenderInfo.h.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::build_render_targets().