OmniSciDB  5ade3759e0
MapDRenderHandler Class Reference

#include <MapDRenderHandler.h>

Public Member Functions

 ~MapDRenderHandler ()
 

Private Member Functions

 MapDRenderHandler (MapDHandler *mapd_handler, const size_t render_mem_bytes, const int num_gpus, const int start_gpu, const MapDParameters mapd_parameters)
 
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 ()
 

Static Private Member Functions

static std::string dump_table_col_names (const std::map< std::string, std::vector< std::string >> &table_col_names)
 

Friends

class MapDHandler
 

Detailed Description

Definition at line 30 of file MapDRenderHandler.h.

Constructor & Destructor Documentation

◆ ~MapDRenderHandler()

MapDRenderHandler::~MapDRenderHandler ( )
inline

Definition at line 32 of file MapDRenderHandler.h.

32 {}

◆ MapDRenderHandler()

MapDRenderHandler::MapDRenderHandler ( MapDHandler mapd_handler,
const size_t  render_mem_bytes,
const int  num_gpus,
const int  start_gpu,
const MapDParameters  mapd_parameters 
)
inlineprivate

Definition at line 35 of file MapDRenderHandler.h.

39  {
40  throw std::runtime_error(
41  "Rendering is only supported in the Enterprise and Community Editions");
42  }

Member Function Documentation

◆ clear_cpu_memory()

void MapDRenderHandler::clear_cpu_memory ( )
inlineprivate

Definition at line 87 of file MapDRenderHandler.h.

References CHECK.

87 { CHECK(false); }
#define CHECK(condition)
Definition: Logger.h:187

◆ clear_gpu_memory()

void MapDRenderHandler::clear_gpu_memory ( )
inlineprivate

Definition at line 86 of file MapDRenderHandler.h.

References CHECK.

86 { CHECK(false); }
#define CHECK(condition)
Definition: Logger.h:187

◆ disconnect()

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

Definition at line 44 of file MapDRenderHandler.h.

44 {}

◆ dump_table_col_names()

static std::string MapDRenderHandler::dump_table_col_names ( const std::map< std::string, std::vector< std::string >> &  table_col_names)
inlinestaticprivate

Definition at line 69 of file MapDRenderHandler.h.

References CHECK.

Referenced by MapDHandler::get_result_row_for_pixel().

70  {
71  CHECK(false);
72  }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ execute_next_render_step()

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

Definition at line 63 of file MapDRenderHandler.h.

References CHECK.

65  {
66  CHECK(false);
67  }
#define CHECK(condition)
Definition: Logger.h:187

◆ get_render_manager()

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

Definition at line 89 of file MapDRenderHandler.h.

References CHECK.

89  {
90  CHECK(false);
91  return nullptr;
92  }
#define CHECK(condition)
Definition: Logger.h:187

◆ 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 
)
inlineprivate

Definition at line 74 of file MapDRenderHandler.h.

References CHECK.

82  {
83  CHECK(false);
84  }
#define CHECK(condition)
Definition: Logger.h:187

◆ handle_ddl()

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

Definition at line 94 of file MapDRenderHandler.h.

References CHECK.

94 { CHECK(false); }
#define CHECK(condition)
Definition: Logger.h:187

◆ 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 
)
inlineprivate

Definition at line 46 of file MapDRenderHandler.h.

References CHECK.

51  {
52  CHECK(false);
53  }
#define CHECK(condition)
Definition: Logger.h:187

◆ shutdown()

void MapDRenderHandler::shutdown ( )
inlineprivate

Definition at line 95 of file MapDRenderHandler.h.

References CHECK.

95 { CHECK(false); }
#define CHECK(condition)
Definition: Logger.h:187

◆ 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 
)
inlineprivate

Definition at line 55 of file MapDRenderHandler.h.

References CHECK.

59  {
60  CHECK(false);
61  }
#define CHECK(condition)
Definition: Logger.h:187

Friends And Related Function Documentation

◆ MapDHandler

friend class MapDHandler
friend

Definition at line 97 of file MapDRenderHandler.h.


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