OmniSciDB  d2f719934e
 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

bool is_ext_arg_type_array ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 64 of file TableFunctionHelper.h.

References ArrayBool, ArrayDouble, ArrayFloat, ArrayInt16, ArrayInt32, ArrayInt64, and ArrayInt8.

Referenced by CodeGenerator::codegenFunctionOperCastArgs(), ExtensionFunctionsWhitelist::getLLVMDeclarations(), and anonymous_namespace{ExtensionFunctionsBinding.cpp}::match_arguments().

+ Here is the caller graph for this function:

bool is_ext_arg_type_column ( const ExtArgumentType  ext_arg_type)
inline
bool is_ext_arg_type_geo ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 114 of file TableFunctionHelper.h.

References GeoLineString, GeoMultiPolygon, GeoPoint, and GeoPolygon.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

114  {
115  switch (ext_arg_type) {
120  return true;
121 
122  default:
123  return false;
124  }
125 }

+ Here is the caller graph for this function:

bool is_ext_arg_type_nonscalar ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 188 of file TableFunctionHelper.h.

References is_ext_arg_type_scalar().

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

188  {
189  return !is_ext_arg_type_scalar(ext_arg_type);
190 }
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 127 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 143 of file TableFunctionHelper.h.

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

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 160 of file TableFunctionHelper.h.

References Int16, Int32, Int64, and Int8.

160  {
161  switch (ext_arg_type) {
166  return true;
167  default:
168  return false;
169  }
170 }
int32_t max_digits_for_ext_integer_arg ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 172 of file TableFunctionHelper.h.

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

172  {
173  switch (ext_arg_type) {
175  return 2;
177  return 4;
179  return 9;
181  return 18;
182  default:
183  UNREACHABLE();
184  return 0;
185  }
186 }
#define UNREACHABLE()
Definition: Logger.h:255