OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderInfo.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, 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 
19 
20 RenderInfo::RenderInfo(const ::QueryRenderer::RenderSessionKey& in_render_session_key,
21  const RenderQueryOptions& in_render_query_opts,
22  const bool force_non_in_situ_data)
23  : render_session_key(in_render_session_key)
24  , render_query_opts_(in_render_query_opts) {
25  CHECK(false);
26 }
27 
29  CHECK(false);
30  static const Catalog_Namespace::SessionInfo tmp(
31  nullptr,
32  Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false, false),
34  "");
35  return tmp;
36 }
37 
38 std::shared_ptr<Catalog_Namespace::SessionInfo const> RenderInfo::getSessionInfoPtr()
39  const {
40  UNREACHABLE();
41  return {};
42 }
43 
45  CHECK(false);
46 }
47 
49  CHECK(false);
50  return false;
51 }
52 
54  CHECK(false);
55  return false;
56 }
57 
59  CHECK(false);
60  return false;
61 }
62 
64  CHECK(false);
65  return false;
66 }
67 
69  CHECK(false);
70  return false;
71 }
72 
74  CHECK(false);
75 }
76 
77 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQueryVboLayout() const {
78  CHECK(false);
79  return nullptr;
80 }
81 
83  const std::shared_ptr<QueryRenderer::QueryDataLayout>& vbo_layout) {
84  CHECK(false);
85 }
86 
87 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQuerySsboLayout() const {
88  CHECK(false);
89  return nullptr;
90 }
91 
93  const std::shared_ptr<QueryRenderer::QueryDataLayout>& ssbo_layout) {
94  CHECK(false);
95 }
96 
97 bool RenderInfo::setInSituDataIfUnset(const bool is_in_situ_data) {
98  CHECK(false);
99  return false;
100 }
101 
103  CHECK(false);
104  return render_query_opts_;
105 }
106 
107 void RenderInfo::reset(std::unique_ptr<RenderQueryOptions> in_query_opts,
108  const bool in_force_non_in_situ_data,
109  const bool in_disallow_in_situ_only_if_final_ED_is_aggregate) {
110  CHECK(false);
111 }
bool hasInSituData() const
Definition: RenderInfo.cpp:53
void disableCudaBuffers()
Definition: RenderInfo.cpp:73
bool useCudaBuffers() const
Definition: RenderInfo.cpp:68
std::shared_ptr< Catalog_Namespace::SessionInfo const > getSessionInfoPtr() const
Definition: RenderInfo.cpp:38
void setForceNonInSituData()
Definition: RenderInfo.cpp:44
std::shared_ptr< QueryRenderer::QueryDataLayout > getQuerySsboLayout() const
Definition: RenderInfo.cpp:87
bool queryRanWithInSituData() const
Definition: RenderInfo.cpp:48
bool setInSituDataIfUnset(const bool is_in_situ_data)
Definition: RenderInfo.cpp:97
#define UNREACHABLE()
Definition: Logger.h:253
RenderInfo(const ::QueryRenderer::RenderSessionKey &in_render_session_key, const RenderQueryOptions &in_render_query_opts, const bool force_non_in_situ_data=false)
Definition: RenderInfo.cpp:20
const Catalog_Namespace::SessionInfo & getSessionInfo() const
Definition: RenderInfo.cpp:28
const RenderQueryOptions & getRenderQueryOptions() const
Definition: RenderInfo.cpp:102
std::shared_ptr< QueryRenderer::QueryDataLayout > getQueryVboLayout() const
Definition: RenderInfo.cpp:77
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:90
void reset(std::unique_ptr< RenderQueryOptions > in_query_opts, const bool in_force_non_in_situ_data, const bool in_disallow_in_situ_only_if_final_ED_is_aggregate)
Definition: RenderInfo.cpp:107
bool isInSituDataFlagUnset() const
Definition: RenderInfo.cpp:58
void setQuerySsboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &ssbo_layout)
Definition: RenderInfo.cpp:92
bool isPotentialInSituRender() const
Definition: RenderInfo.cpp:63
#define CHECK(condition)
Definition: Logger.h:209
void setQueryVboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &vbo_layout)
Definition: RenderInfo.cpp:82