OmniSciDB  085a039ca4
 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 115 of file TableFunctionHelper.h.

References GeoLineString, GeoMultiPolygon, GeoPoint, and GeoPolygon.

Referenced by CodeGenerator::codegenFunctionOperCastArgs().

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

+ Here is the caller graph for this function:

bool is_ext_arg_type_nonscalar ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 191 of file TableFunctionHelper.h.

References is_ext_arg_type_scalar().

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

191  {
192  return !is_ext_arg_type_scalar(ext_arg_type);
193 }
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 128 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 144 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 162 of file TableFunctionHelper.h.

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

162  {
163  switch (ext_arg_type) {
169  return true;
170  default:
171  return false;
172  }
173 }
int32_t max_digits_for_ext_integer_arg ( const ExtArgumentType  ext_arg_type)
inline

Definition at line 175 of file TableFunctionHelper.h.

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

175  {
176  switch (ext_arg_type) {
178  return 2;
180  return 4;
182  return 9;
184  return 18;
185  default:
186  UNREACHABLE();
187  return 0;
188  }
189 }
#define UNREACHABLE()
Definition: Logger.h:267