OmniSciDB  0fdbebe030
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 size_t max_conncurrent_render_sessions, 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 ( MapDHandler mapd_handler,
const size_t  render_mem_bytes,
const size_t  render_poly_cache_bytes,
const size_t  max_conncurrent_render_sessions,
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.

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

Member Function Documentation

void MapDRenderHandler::clear_cpu_memory ( )
private

Definition at line 89 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

89  {
90  CHECK(impl_);
91 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

void MapDRenderHandler::clear_gpu_memory ( )
private

Definition at line 85 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

85  {
86  CHECK(impl_);
87 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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

Definition at line 44 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

44  {
45  CHECK(impl_);
46 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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

Definition at line 66 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

69  {
70  CHECK(impl_);
71 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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

Definition at line 93 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

93  {
94  CHECK(impl_);
95  return nullptr;
96 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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 73 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

81  {
82  CHECK(impl_);
83 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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

Definition at line 98 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

98  {
99  CHECK(impl_);
100 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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 48 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

54  {
55  CHECK(impl_);
56 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

void MapDRenderHandler::shutdown ( )
private

Definition at line 101 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

101  {
102  CHECK(impl_);
103 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

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 58 of file MapDRenderHandler.cpp.

References CHECK(), and impl_.

62  {
63  CHECK(impl_);
64 }
CHECK(cgen_state)
std::unique_ptr< Impl > impl_

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class MapDHandler
friend

Definition at line 98 of file MapDRenderHandler.h.

Member Data Documentation


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