OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_prefer_igpu, const uint32_t renderer_vulkan_timeout_ms, const bool renderer_use_parallel_executors, const SystemParameters system_parameters, const bool renderer_enable_slab_allocation)
 
 ~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, 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, 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 ()
 
std::string get_renderer_status_json () const
 
bool validate_renderer_status_json (const std::string &other_renderer_status_json) const
 
void shutdown ()
 

Private Attributes

std::unique_ptr< Implimpl_
 

Friends

class DBHandler
 

Detailed Description

Definition at line 44 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_prefer_igpu,
const uint32_t  renderer_vulkan_timeout_ms,
const bool  renderer_use_parallel_executors,
const SystemParameters  system_parameters,
const bool  renderer_enable_slab_allocation 
)
explicit

Definition at line 28 of file RenderHandler.cpp.

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

Member Function Documentation

void RenderHandler::clear_cpu_memory ( )
private

Definition at line 90 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 86 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 46 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 68 of file RenderHandler.cpp.

References CHECK, and impl_.

70  {
71  CHECK(impl_);
72 }
std::unique_ptr< Impl > impl_
#define CHECK(condition)
Definition: Logger.h:291
std::string RenderHandler::get_renderer_status_json ( ) const
private

Definition at line 94 of file RenderHandler.cpp.

References CHECK, and impl_.

94  {
95  CHECK(impl_);
96  return std::string();
97 }
std::unique_ptr< Impl > impl_
#define CHECK(condition)
Definition: Logger.h:291
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 74 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 50 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 105 of file RenderHandler.cpp.

References CHECK, and impl_.

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

Definition at line 60 of file RenderHandler.cpp.

References CHECK, and impl_.

64  {
65  CHECK(impl_);
66 }
std::unique_ptr< Impl > impl_
#define CHECK(condition)
Definition: Logger.h:291
bool RenderHandler::validate_renderer_status_json ( const std::string &  other_renderer_status_json) const
private

Definition at line 99 of file RenderHandler.cpp.

References CHECK, and impl_.

100  {
101  CHECK(impl_);
102  return false;
103 }
std::unique_ptr< Impl > impl_
#define CHECK(condition)
Definition: Logger.h:291

Friends And Related Function Documentation

friend class DBHandler
friend

Definition at line 103 of file RenderHandler.h.

Member Data Documentation


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