OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RenderHandler Class Reference

#include <RenderHandler.h>

Classes

class  Impl
 

Public Member Functions

 RenderHandler (DBHandler *db_handler, const size_t render_mem_bytes, const size_t max_conncurrent_render_sessions, const bool compositor_use_last_gpu, const bool enable_auto_clear_render_mem, const int render_oom_retry_threshold, const bool renderer_use_vulkan_driver, const SystemParameters system_parameters)
 
 ~RenderHandler ()
 

Private Member Functions

void disconnect (const TSessionId &session)
 
void render_vega (TRenderResult &_return, const std::shared_ptr< Catalog_Namespace::SessionInfo > session_info, const int64_t widget_id, const std::string &vega_json, const int32_t compression_level, const std::string &nonce)
 
void start_render_query (TPendingRenderQuery &_return, const TSessionId &session, const int64_t widget_id, const int16_t node_idx, const std::string &vega_json)
 
void execute_next_render_step (TRenderStepResult &_return, const TPendingRenderQuery &pending_render, const TRenderAggDataMap &merged_data)
 
void get_result_row_for_pixel (TPixelTableRowResult &_return, const std::shared_ptr< Catalog_Namespace::SessionInfo > session_info, const int64_t widget_id, const TPixel &pixel, const std::map< std::string, std::vector< std::string >> &table_col_names, const bool column_format, const int32_t pixelRadius, const std::string &nonce)
 
void clear_gpu_memory ()
 
void clear_cpu_memory ()
 
QueryRenderer::QueryRenderManager * get_render_manager ()
 
void shutdown ()
 

Private Attributes

std::unique_ptr< Implimpl_
 

Friends

class DBHandler
 

Detailed Description

Definition at line 43 of file RenderHandler.h.

Constructor & Destructor Documentation

RenderHandler::RenderHandler ( DBHandler db_handler,
const size_t  render_mem_bytes,
const size_t  max_conncurrent_render_sessions,
const bool  compositor_use_last_gpu,
const bool  enable_auto_clear_render_mem,
const int  render_oom_retry_threshold,
const bool  renderer_use_vulkan_driver,
const SystemParameters  system_parameters 
)
explicit

Definition at line 30 of file RenderHandler.cpp.

38  : impl_(nullptr) {
39  throw std::runtime_error(
40  "Rendering is only supported in the Enterprise and Community Editions");
41 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
RenderHandler::~RenderHandler ( )
default

Member Function Documentation

void RenderHandler::clear_cpu_memory ( )
private

Definition at line 89 of file RenderHandler.cpp.

References CHECK, and impl_.

89  {
90  CHECK(impl_);
91 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::clear_gpu_memory ( )
private

Definition at line 85 of file RenderHandler.cpp.

References CHECK, and impl_.

85  {
86  CHECK(impl_);
87 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::disconnect ( const TSessionId &  session)
private

Definition at line 45 of file RenderHandler.cpp.

References CHECK, and impl_.

45  {
46  CHECK(impl_);
47 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::execute_next_render_step ( TRenderStepResult &  _return,
const TPendingRenderQuery &  pending_render,
const TRenderAggDataMap &  merged_data 
)
private

Definition at line 67 of file RenderHandler.cpp.

References CHECK, and impl_.

69  {
70  CHECK(impl_);
71 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
QueryRenderer::QueryRenderManager * RenderHandler::get_render_manager ( )
private

Definition at line 93 of file RenderHandler.cpp.

References CHECK, and impl_.

93  {
94  CHECK(impl_);
95  return nullptr;
96 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::get_result_row_for_pixel ( TPixelTableRowResult &  _return,
const std::shared_ptr< Catalog_Namespace::SessionInfo session_info,
const int64_t  widget_id,
const TPixel &  pixel,
const std::map< std::string, std::vector< std::string >> &  table_col_names,
const bool  column_format,
const int32_t  pixelRadius,
const std::string &  nonce 
)
private

Definition at line 73 of file RenderHandler.cpp.

References CHECK, and impl_.

81  {
82  CHECK(impl_);
83 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::render_vega ( TRenderResult &  _return,
const std::shared_ptr< Catalog_Namespace::SessionInfo session_info,
const int64_t  widget_id,
const std::string &  vega_json,
const int32_t  compression_level,
const std::string &  nonce 
)
private

Definition at line 49 of file RenderHandler.cpp.

References CHECK, and impl_.

55  {
56  CHECK(impl_);
57 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::shutdown ( )
private

Definition at line 98 of file RenderHandler.cpp.

References CHECK, and impl_.

98  {
99  CHECK(impl_);
100 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197
void RenderHandler::start_render_query ( TPendingRenderQuery &  _return,
const TSessionId &  session,
const int64_t  widget_id,
const int16_t  node_idx,
const std::string &  vega_json 
)
private

Definition at line 59 of file RenderHandler.cpp.

References CHECK, and impl_.

63  {
64  CHECK(impl_);
65 }
std::unique_ptr< Impl > impl_
Definition: RenderHandler.h:96
#define CHECK(condition)
Definition: Logger.h:197

Friends And Related Function Documentation

friend class DBHandler
friend

Definition at line 98 of file RenderHandler.h.

Member Data Documentation


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