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