OmniSciDB  29e35f4d58
MapDRenderHandler Class Reference

#include <MapDRenderHandler.h>

Classes

class  Impl
 

Public Member Functions

 MapDRenderHandler (MapDHandler *mapd_handler, const size_t render_mem_bytes, const size_t render_poly_cache_bytes, const bool enable_auto_clear_render_mem, const int render_oom_retry_threshold, const MapDParameters mapd_parameters)
 
 ~MapDRenderHandler ()
 

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 handle_ddl (Parser::DDLStmt *)
 
void shutdown ()
 

Private Attributes

std::unique_ptr< Implimpl_
 

Friends

class MapDHandler
 

Detailed Description

Definition at line 43 of file MapDRenderHandler.h.

Constructor & Destructor Documentation

◆ MapDRenderHandler()

MapDRenderHandler::MapDRenderHandler ( MapDHandler mapd_handler,
const size_t  render_mem_bytes,
const size_t  render_poly_cache_bytes,
const bool  enable_auto_clear_render_mem,
const int  render_oom_retry_threshold,
const MapDParameters  mapd_parameters 
)
explicit

Definition at line 30 of file MapDRenderHandler.cpp.

References ~MapDRenderHandler().

36  : impl_(nullptr) {
37  throw std::runtime_error(
38  "Rendering is only supported in the Enterprise and Community Editions");
39 }
std::unique_ptr< Impl > impl_
+ Here is the call graph for this function:

◆ ~MapDRenderHandler()

MapDRenderHandler::~MapDRenderHandler ( )
default

Referenced by MapDRenderHandler().

+ Here is the caller graph for this function:

Member Function Documentation

◆ clear_cpu_memory()

void MapDRenderHandler::clear_cpu_memory ( )
private

Definition at line 88 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

88  {
89  CHECK(impl_);
90 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ clear_gpu_memory()

void MapDRenderHandler::clear_gpu_memory ( )
private

Definition at line 84 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

84  {
85  CHECK(impl_);
86 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ disconnect()

void MapDRenderHandler::disconnect ( const TSessionId &  session)
private

Definition at line 43 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

43  {
44  CHECK(impl_);
45 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ execute_next_render_step()

void MapDRenderHandler::execute_next_render_step ( TRenderStepResult &  _return,
const TPendingRenderQuery &  pending_render,
const TRenderAggDataMap &  merged_data 
)
private

Definition at line 65 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

68  {
69  CHECK(impl_);
70 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ get_render_manager()

QueryRenderer::QueryRenderManager * MapDRenderHandler::get_render_manager ( )
private

Definition at line 92 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

92  {
93  CHECK(impl_);
94  return nullptr;
95 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ get_result_row_for_pixel()

void MapDRenderHandler::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 72 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

80  {
81  CHECK(impl_);
82 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ handle_ddl()

void MapDRenderHandler::handle_ddl ( Parser::DDLStmt )
private

Definition at line 97 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

97  {
98  CHECK(impl_);
99 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ render_vega()

void MapDRenderHandler::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 47 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

53  {
54  CHECK(impl_);
55 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

◆ shutdown()

void MapDRenderHandler::shutdown ( )
private

Definition at line 100 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

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

◆ start_render_query()

void MapDRenderHandler::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 57 of file MapDRenderHandler.cpp.

References CHECK, and impl_.

61  {
62  CHECK(impl_);
63 }
#define CHECK(condition)
Definition: Logger.h:193
std::unique_ptr< Impl > impl_

Friends And Related Function Documentation

◆ MapDHandler

friend class MapDHandler
friend

Definition at line 97 of file MapDRenderHandler.h.

Member Data Documentation

◆ impl_


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