OmniSciDB  0bd2ec9cf4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MapDRenderHandler.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2019 OmnSci, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * File: MapDRenderHandler.cpp
19  * Author: Chris Root
20  *
21  * Created on Dec 18, 2019, 10:00 AM
22  */
23 
25 
26 #include "Shared/Logger.h"
27 
29 
31  const size_t render_mem_bytes,
32  const size_t render_poly_cache_bytes,
33  const bool enable_auto_clear_render_mem,
34  const int render_oom_retry_threshold,
35  const MapDParameters mapd_parameters)
36  : impl_(nullptr) {
37  throw std::runtime_error(
38  "Rendering is only supported in the Enterprise and Community Editions");
39 }
40 
42 
43 void MapDRenderHandler::disconnect(const TSessionId& session) {
44  CHECK(impl_);
45 }
46 
48  TRenderResult& _return,
49  const std::shared_ptr<Catalog_Namespace::SessionInfo> session_info,
50  const int64_t widget_id,
51  const std::string& vega_json,
52  const int32_t compression_level,
53  const std::string& nonce) {
54  CHECK(impl_);
55 }
56 
57 void MapDRenderHandler::start_render_query(TPendingRenderQuery& _return,
58  const TSessionId& session,
59  const int64_t widget_id,
60  const int16_t node_idx,
61  const std::string& vega_json) {
62  CHECK(impl_);
63 }
64 
66  TRenderStepResult& _return,
67  const TPendingRenderQuery& pending_render,
68  const TRenderAggDataMap& merged_data) {
69  CHECK(impl_);
70 }
71 
73  TPixelTableRowResult& _return,
74  const std::shared_ptr<Catalog_Namespace::SessionInfo> session_info,
75  const int64_t widget_id,
76  const TPixel& pixel,
77  const std::map<std::string, std::vector<std::string>>& table_col_names,
78  const bool column_format,
79  const int32_t pixelRadius,
80  const std::string& nonce) {
81  CHECK(impl_);
82 }
83 
85  CHECK(impl_);
86 }
87 
89  CHECK(impl_);
90 }
91 
92 QueryRenderer::QueryRenderManager* MapDRenderHandler::get_render_manager() {
93  CHECK(impl_);
94  return nullptr;
95 }
96 
98  CHECK(impl_);
99 }
101  CHECK(impl_);
102 }
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)
QueryRenderer::QueryRenderManager * get_render_manager()
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 disconnect(const TSessionId &session)
void execute_next_render_step(TRenderStepResult &_return, const TPendingRenderQuery &pending_render, const TRenderAggDataMap &merged_data)
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)
CHECK(cgen_state)
const int32_t groups_buffer_size return nullptr
void handle_ddl(Parser::DDLStmt *)
void start_render_query(TPendingRenderQuery &_return, const TSessionId &session, const int64_t widget_id, const int16_t node_idx, const std::string &vega_json)
std::unique_ptr< Impl > impl_