OmniSciDB  1dac507f6e
 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(
33  return tmp;
34 }
35 
36 std::shared_ptr<Catalog_Namespace::SessionInfo const> RenderInfo::getSessionInfoPtr()
37  const {
38  UNREACHABLE();
39  return {};
40 }
41 
43  CHECK(false);
44 }
45 
47  CHECK(false);
48  return false;
49 }
50 
52  CHECK(false);
53  return false;
54 }
55 
57  CHECK(false);
58  return false;
59 }
60 
62  CHECK(false);
63  return false;
64 }
65 
67  CHECK(false);
68  return false;
69 }
70 
72  CHECK(false);
73 }
74 
75 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQueryVboLayout() const {
76  CHECK(false);
77  return nullptr;
78 }
79 
81  const std::shared_ptr<QueryRenderer::QueryDataLayout>& vbo_layout) {
82  CHECK(false);
83 }
84 
85 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQuerySsboLayout() const {
86  CHECK(false);
87  return nullptr;
88 }
89 
91  const std::shared_ptr<QueryRenderer::QueryDataLayout>& ssbo_layout) {
92  CHECK(false);
93 }
94 
95 bool RenderInfo::setInSituDataIfUnset(const bool is_in_situ_data) {
96  CHECK(false);
97  return false;
98 }
99 
101  CHECK(false);
102  return nullptr;
103 }
104 
106  CHECK(false);
107  return render_query_opts_;
108 }
109 
111  const bool in_force_non_in_situ_data,
112  const bool in_disallow_in_situ_only_if_final_ED_is_aggregate) {
113  CHECK(false);
114 }
bool hasInSituData() const
Definition: RenderInfo.cpp:51
void disableCudaBuffers()
Definition: RenderInfo.cpp:71
const RenderQueryOptions * getRenderQueryOptsPtr() const
Definition: RenderInfo.cpp:100
bool useCudaBuffers() const
Definition: RenderInfo.cpp:66
std::shared_ptr< Catalog_Namespace::SessionInfo const > getSessionInfoPtr() const
Definition: RenderInfo.cpp:36
void setForceNonInSituData()
Definition: RenderInfo.cpp:42
std::shared_ptr< QueryRenderer::QueryDataLayout > getQuerySsboLayout() const
Definition: RenderInfo.cpp:85
bool queryRanWithInSituData() const
Definition: RenderInfo.cpp:46
bool setInSituDataIfUnset(const bool is_in_situ_data)
Definition: RenderInfo.cpp:95
#define UNREACHABLE()
Definition: Logger.h:234
const Catalog_Namespace::SessionInfo & getSessionInfo() const
Definition: RenderInfo.cpp:29
const RenderQueryOptions & getRenderQueryOpts() const
Definition: RenderInfo.cpp:105
CHECK(cgen_state)
std::shared_ptr< QueryRenderer::QueryDataLayout > getQueryVboLayout() const
Definition: RenderInfo.cpp:75
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:94
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:110
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:56
void setQuerySsboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &ssbo_layout)
Definition: RenderInfo.cpp:90
bool isPotentialInSituRender() const
Definition: RenderInfo.cpp:61
void setQueryVboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &vbo_layout)
Definition: RenderInfo.cpp:80