OmniSciDB  b28c0d5765
 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 456 of file TableFunctionsFactory.cpp.

References CHECK_GT.

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

456  {
457  const auto idx = str.find("__");
458  if (idx == std::string::npos) {
459  return str;
460  }
461  CHECK_GT(idx, std::string::size_type(0));
462  return str.substr(0, idx);
463 }
#define CHECK_GT(x, y)
Definition: Logger.h:234

+ 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 30 of file TableFunctionsFactory.cpp.

References ext_arg_type_to_type_info(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, and UNREACHABLE.

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

30  {
31  switch (ext_arg_type) {
33  return SQLTypeInfo(kTINYINT, false);
35  return SQLTypeInfo(kSMALLINT, false);
37  return SQLTypeInfo(kINT, false);
39  return SQLTypeInfo(kBIGINT, false);
41  return SQLTypeInfo(kFLOAT, false);
43  return SQLTypeInfo(kDOUBLE, false);
45  return SQLTypeInfo(kBOOLEAN, false);
46  default:
47  return ext_arg_type_to_type_info(ext_arg_type);
48  }
49  UNREACHABLE();
50  return SQLTypeInfo(kNULLT, false);
51 }
#define UNREACHABLE()
Definition: Logger.h:266
Definition: sqltypes.h:60
SQLTypeInfo ext_arg_type_to_type_info(const ExtArgumentType ext_arg_type)

+ 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 53 of file TableFunctionsFactory.cpp.

References ext_arg_type_to_type_info(), SQLTypeInfo::get_elem_type(), kBIGINT, kBOOLEAN, kDOUBLE, kFLOAT, kINT, kNULLT, kSMALLINT, kTINYINT, PBool, PDouble, PFloat, PInt16, PInt32, PInt64, PInt8, and UNREACHABLE.

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

53  {
54  switch (ext_arg_type) {
56  return SQLTypeInfo(kTINYINT, false);
58  return SQLTypeInfo(kSMALLINT, false);
60  return SQLTypeInfo(kINT, false);
62  return SQLTypeInfo(kBIGINT, false);
64  return SQLTypeInfo(kFLOAT, false);
66  return SQLTypeInfo(kDOUBLE, false);
68  return SQLTypeInfo(kBOOLEAN, false);
69  default:
70  return ext_arg_type_to_type_info(ext_arg_type).get_elem_type();
71  }
72  UNREACHABLE();
73  return SQLTypeInfo(kNULLT, false);
74 }
#define UNREACHABLE()
Definition: Logger.h:266
Definition: sqltypes.h:60
SQLTypeInfo get_elem_type() const
Definition: sqltypes.h:957
SQLTypeInfo ext_arg_type_to_type_info(const ExtArgumentType ext_arg_type)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: