OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TableFunctionHelper.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 OmniSci, 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 #pragma once
18 
20 
22  switch (ext_arg_type) {
37  default:
38  return ext_arg_type;
39  }
40 }
41 
43  const ExtArgumentType ext_arg_type) {
44  switch (ext_arg_type) {
59  default:
60  return ext_arg_type;
61  }
62 }
63 
64 inline bool is_ext_arg_type_array(const ExtArgumentType ext_arg_type) {
65  switch (ext_arg_type) {
73  return true;
74 
75  default:
76  return false;
77  }
78 }
79 
80 inline bool is_ext_arg_type_column(const ExtArgumentType ext_arg_type) {
81  switch (ext_arg_type) {
89  return true;
90 
91  default:
92  return false;
93  }
94 }
95 
96 inline bool is_ext_arg_type_column_list(const ExtArgumentType ext_arg_type) {
97  switch (ext_arg_type) {
105  return true;
106 
107  default:
108  return false;
109  }
110 }
111 
112 inline bool is_ext_arg_type_geo(const ExtArgumentType ext_arg_type) {
113  switch (ext_arg_type) {
118  return true;
119 
120  default:
121  return false;
122  }
123 }
124 
125 inline bool is_ext_arg_type_pointer(const ExtArgumentType ext_arg_type) {
126  switch (ext_arg_type) {
134  return true;
135 
136  default:
137  return false;
138  }
139 }
140 
141 inline bool is_ext_arg_type_scalar(const ExtArgumentType ext_arg_type) {
142  switch (ext_arg_type) {
150  return true;
151 
152  default:
153  return false;
154  }
155 }
156 
157 inline bool is_ext_arg_type_nonscalar(const ExtArgumentType ext_arg_type) {
158  return !is_ext_arg_type_scalar(ext_arg_type);
159 }
bool is_ext_arg_type_scalar(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_column(const ExtArgumentType ext_arg_type)
ExtArgumentType ext_arg_type_ensure_column(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_column_list(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_nonscalar(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_geo(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_array(const ExtArgumentType ext_arg_type)
ExtArgumentType ext_arg_type_ensure_column_list(const ExtArgumentType ext_arg_type)
bool is_ext_arg_type_pointer(const ExtArgumentType ext_arg_type)