OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_functions::anonymous_namespace{TableFunctionsFactory.cpp} Namespace Reference

Functions

SQLTypeInfo ext_arg_pointer_type_to_type_info (const ExtArgumentType ext_arg_type)
 
SQLTypeInfo ext_arg_type_to_type_info_output (const ExtArgumentType ext_arg_type)
 
std::string drop_suffix_impl (const std::string &str)
 

Function Documentation

std::string table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::drop_suffix_impl ( const std::string &  str)

Definition at line 364 of file TableFunctionsFactory.cpp.

References CHECK_GT.

Referenced by table_functions::TableFunctionsFactory::get_table_funcs(), and table_functions::TableFunction::getName().

364  {
365  const auto idx = str.find("__");
366  if (idx == std::string::npos) {
367  return str;
368  }
369  CHECK_GT(idx, std::string::size_type(0));
370  return str.substr(0, idx);
371 }
#define CHECK_GT(x, y)
Definition: Logger.h:221

+ Here is the caller graph for this function:

SQLTypeInfo table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_pointer_type_to_type_info ( const ExtArgumentType  ext_arg_type)

Definition at line 28 of file TableFunctionsFactory.cpp.

References ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, generate_column_list_type(), generate_column_type(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, LOG, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, ExtensionFunctionsWhitelist::toString(), UNREACHABLE, and logger::WARNING.

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

28  {
29  switch (ext_arg_type) {
31  return SQLTypeInfo(kTINYINT, false);
33  return SQLTypeInfo(kSMALLINT, false);
35  return SQLTypeInfo(kINT, false);
37  return SQLTypeInfo(kBIGINT, false);
39  return SQLTypeInfo(kFLOAT, false);
41  return SQLTypeInfo(kDOUBLE, false);
43  return SQLTypeInfo(kBOOLEAN, false);
49  return generate_column_type(kINT);
72  default:
73  LOG(WARNING) << "ext_arg_pointer_type_to_type_info: ExtArgumentType `"
75  << "` conversion to SQLTypeInfo not implemented.";
76  UNREACHABLE();
77  }
78  UNREACHABLE();
79  return SQLTypeInfo(kNULLT, false);
80 }
#define LOG(tag)
Definition: Logger.h:203
auto generate_column_type(const SQLTypes subtype)
Definition: sqltypes.h:1119
#define UNREACHABLE()
Definition: Logger.h:253
auto generate_column_list_type(const SQLTypes subtype)
Definition: sqltypes.h:1133
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
Definition: sqltypes.h:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SQLTypeInfo table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_type_to_type_info_output ( const ExtArgumentType  ext_arg_type)

Definition at line 82 of file TableFunctionsFactory.cpp.

References Bool, ColumnBool, ColumnDouble, ColumnFloat, ColumnInt16, ColumnInt32, ColumnInt64, ColumnInt8, ColumnListBool, ColumnListDouble, ColumnListFloat, ColumnListInt16, ColumnListInt32, ColumnListInt64, ColumnListInt8, ColumnListTextEncodingDict, ColumnTextEncodingDict, Double, Float, Int16, Int32, Int64, Int8, kBIGINT, kBOOLEAN, kDOUBLE, kENCODING_DICT, kFLOAT, kINT, kNULLT, kSMALLINT, kTEXT, kTINYINT, LOG, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, TextEncodingDict, ExtensionFunctionsWhitelist::toString(), UNREACHABLE, and logger::WARNING.

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

82  {
83  switch (ext_arg_type) {
88  return SQLTypeInfo(kTINYINT, false);
93  return SQLTypeInfo(kSMALLINT, false);
98  return SQLTypeInfo(kINT, false);
103  return SQLTypeInfo(kBIGINT, false);
108  return SQLTypeInfo(kFLOAT, false);
113  return SQLTypeInfo(kDOUBLE, false);
118  return SQLTypeInfo(kBOOLEAN, false);
122  return SQLTypeInfo(kTEXT, false, kENCODING_DICT);
123  default:
124  LOG(WARNING) << "ext_arg_pointer_type_to_type_info: ExtArgumentType `"
126  << "` conversion to SQLTypeInfo not implemented.";
127  UNREACHABLE();
128  }
129  UNREACHABLE();
130  return SQLTypeInfo(kNULLT, false);
131 }
#define LOG(tag)
Definition: Logger.h:203
#define UNREACHABLE()
Definition: Logger.h:253
Definition: sqltypes.h:52
static std::string toString(const std::vector< ExtensionFunction > &ext_funcs, std::string tab="")
Definition: sqltypes.h:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function: