OmniSciDB  a987f07e93
 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 264 of file TableFunctionHelper.h.

References is_ext_arg_type_scalar().

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

264  {
265  return !is_ext_arg_type_scalar(ext_arg_type);
266 }
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_integer ( const ExtArgumentType  ext_arg_type)
inline
int32_t max_digits_for_ext_integer_arg ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 248 of file TableFunctionHelper.h.

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

248  {
249  switch (ext_arg_type) {
251  return 2;
253  return 4;
255  return 9;
257  return 18;
258  default:
259  UNREACHABLE();
260  return 0;
261  }
262 }
#define UNREACHABLE()
Definition: Logger.h:333