OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionHelper.h File Reference
+ Include dependency graph for TableFunctionHelper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ExtArgumentType ext_arg_type_ensure_column (const ExtArgumentType ext_arg_type)
 
ExtArgumentType ext_arg_type_ensure_column_list (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_array (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_column (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_column_list (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_geo (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_pointer (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_scalar (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_scalar_integer (const ExtArgumentType ext_arg_type)
 
int32_t max_digits_for_ext_integer_arg (const ExtArgumentType ext_arg_type)
 
bool is_ext_arg_type_nonscalar (const ExtArgumentType ext_arg_type)
 

Function Documentation

ExtArgumentType ext_arg_type_ensure_column ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 21 of file TableFunctionHelper.h.

References ArrayBool, ArrayDouble, ArrayFloat, ArrayInt16, ArrayInt32, ArrayInt64, ArrayInt8, ArrayTextEncodingDict, ArrayTextEncodingNone, Bool, ColumnArrayBool, ColumnArrayDouble, ColumnArrayFloat, ColumnArrayInt16, ColumnArrayInt32, ColumnArrayInt64, ColumnArrayInt8, ColumnArrayTextEncodingDict, ColumnArrayTextEncodingNone, ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnTextEncodingDict, ColumnTextEncodingNone, Double, Float, Int16, Int32, Int64, Int8, TextEncodingDict, and TextEncodingNone.

Referenced by table_functions::TableFunction::getArgs().

21  {
22  switch (ext_arg_type) {
59  default:
60  return ext_arg_type;
61  }
62 }

+ Here is the caller graph for this function:

ExtArgumentType ext_arg_type_ensure_column_list ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 64 of file TableFunctionHelper.h.

References ArrayBool, ArrayDouble, ArrayFloat, ArrayInt16, ArrayInt32, ArrayInt64, ArrayInt8, ArrayTextEncodingDict, ArrayTextEncodingNone, Bool, ColumnListArrayBool, ColumnListArrayDouble, ColumnListArrayFloat, ColumnListArrayInt16, ColumnListArrayInt32, ColumnListArrayInt64, ColumnListArrayInt8, ColumnListArrayTextEncodingDict, ColumnListArrayTextEncodingNone, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, ColumnListTextEncodingDict, ColumnListTextEncodingNone, Double, Float, Int16, Int32, Int64, Int8, TextEncodingDict, and TextEncodingNone.

65  {
66  switch (ext_arg_type) {
103  default:
104  return ext_arg_type;
105  }
106 }
bool is_ext_arg_type_column ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 126 of file TableFunctionHelper.h.

References ColumnArrayBool, ColumnArrayDouble, ColumnArrayFloat, ColumnArrayInt16, ColumnArrayInt32, ColumnArrayInt64, ColumnArrayInt8, ColumnArrayTextEncodingDict, ColumnArrayTextEncodingNone, ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnTextEncodingDict, ColumnTextEncodingNone, and ColumnTimestamp.

Referenced by anonymous_namespace{ExtensionFunctionsBinding.cpp}::match_arguments().

126  {
127  switch (ext_arg_type) {
147  return true;
148 
149  default:
150  return false;
151  }
152 }

+ Here is the caller graph for this function:

bool is_ext_arg_type_column_list ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 154 of file TableFunctionHelper.h.

References ColumnListArrayBool, ColumnListArrayDouble, ColumnListArrayFloat, ColumnListArrayInt16, ColumnListArrayInt32, ColumnListArrayInt64, ColumnListArrayInt8, ColumnListArrayTextEncodingDict, ColumnListArrayTextEncodingNone, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, ColumnListTextEncodingDict, and ColumnListTextEncodingNone.

Referenced by anonymous_namespace{ExtensionFunctionsBinding.cpp}::match_arguments().

154  {
155  switch (ext_arg_type) {
174  return true;
175 
176  default:
177  return false;
178  }
179 }

+ Here is the caller graph for this function:

bool is_ext_arg_type_geo ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 181 of file TableFunctionHelper.h.

References GeoLineString, GeoMultiLineString, GeoMultiPoint, GeoMultiPolygon, GeoPoint, and GeoPolygon.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

+ Here is the caller graph for this function:

bool is_ext_arg_type_nonscalar ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 259 of file TableFunctionHelper.h.

References is_ext_arg_type_scalar().

Referenced by table_functions::TableFunction::getSqlOutputRowSizeParameter().

259  {
260  return !is_ext_arg_type_scalar(ext_arg_type);
261 }
bool is_ext_arg_type_scalar(const ExtArgumentType ext_arg_type)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool is_ext_arg_type_pointer ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 196 of file TableFunctionHelper.h.

References PBool, PDouble, PFloat, PInt16, PInt32, PInt64, and PInt8.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

+ Here is the caller graph for this function:

bool is_ext_arg_type_scalar ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 212 of file TableFunctionHelper.h.

References Bool, Double, Float, Int16, Int32, Int64, Int8, TextEncodingNone, and Timestamp.

Referenced by table_functions::TableFunction::countScalarArgs(), table_functions::TableFunction::getSqlOutputRowSizeParameter(), and is_ext_arg_type_nonscalar().

+ Here is the caller graph for this function:

bool is_ext_arg_type_scalar_integer ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 230 of file TableFunctionHelper.h.

References Int16, Int32, Int64, Int8, and Timestamp.

230  {
231  switch (ext_arg_type) {
237  return true;
238  default:
239  return false;
240  }
241 }
int32_t max_digits_for_ext_integer_arg ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 243 of file TableFunctionHelper.h.

References Int16, Int32, Int64, Int8, and UNREACHABLE.

243  {
244  switch (ext_arg_type) {
246  return 2;
248  return 4;
250  return 9;
252  return 18;
253  default:
254  UNREACHABLE();
255  return 0;
256  }
257 }
#define UNREACHABLE()
Definition: Logger.h:266