OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
table_functions::TableFunction Class Reference

#include <TableFunctionsFactory.h>

+ Collaboration diagram for table_functions::TableFunction:

Public Member Functions

 TableFunction (const std::string &name, const TableFunctionOutputRowSizer output_sizer, const std::vector< ExtArgumentType > &input_args, const std::vector< ExtArgumentType > &output_args, bool is_runtime)
 
std::vector< ExtArgumentTypegetArgs () const
 
SQLTypeInfo getOutputSQLType (const size_t idx) const
 
auto getOutputsSize () const
 
auto getName () const
 
bool hasUserSpecifiedOutputMultiplier () const
 
size_t getOutputRowParameter () const
 
bool isRuntime () const
 

Private Attributes

const std::string name_
 
const TableFunctionOutputRowSizer output_sizer_
 
const std::vector
< ExtArgumentType
input_args_
 
const std::vector
< ExtArgumentType
output_args_
 
const bool is_runtime_
 

Detailed Description

Definition at line 37 of file TableFunctionsFactory.h.

Constructor & Destructor Documentation

table_functions::TableFunction::TableFunction ( const std::string &  name,
const TableFunctionOutputRowSizer  output_sizer,
const std::vector< ExtArgumentType > &  input_args,
const std::vector< ExtArgumentType > &  output_args,
bool  is_runtime 
)
inline

Definition at line 39 of file TableFunctionsFactory.h.

44  : name_(name)
45  , output_sizer_(output_sizer)
46  , input_args_(input_args)
47  , output_args_(output_args)
48  , is_runtime_(is_runtime) {}
const TableFunctionOutputRowSizer output_sizer_
const std::vector< ExtArgumentType > output_args_
const std::vector< ExtArgumentType > input_args_

Member Function Documentation

std::vector<ExtArgumentType> table_functions::TableFunction::getArgs ( ) const
inline

Definition at line 50 of file TableFunctionsFactory.h.

References run_benchmark_import::args, input_args_, and output_args_.

50  {
51  std::vector<ExtArgumentType> args;
52  args.insert(args.end(), input_args_.begin(), input_args_.end());
53  args.insert(args.end(), output_args_.begin(), output_args_.end());
54  return args;
55  }
const std::vector< ExtArgumentType > output_args_
const std::vector< ExtArgumentType > input_args_
auto table_functions::TableFunction::getName ( ) const
inline

Definition at line 61 of file TableFunctionsFactory.h.

References name_.

61 { return name_; }
size_t table_functions::TableFunction::getOutputRowParameter ( ) const
inline
SQLTypeInfo table_functions::TableFunction::getOutputSQLType ( const size_t  idx) const

Definition at line 51 of file TableFunctionsFactory.cpp.

References CHECK_LT, table_functions::anonymous_namespace{TableFunctionsFactory.cpp}::ext_arg_pointer_type_to_type_info(), and output_args_.

Referenced by RelAlgExecutor::createTableFunctionWorkUnit().

51  {
52  CHECK_LT(idx, output_args_.size());
53  // TODO(adb): conditionally handle nulls
55 }
SQLTypeInfo ext_arg_pointer_type_to_type_info(const ExtArgumentType ext_arg_type)
const std::vector< ExtArgumentType > output_args_
#define CHECK_LT(x, y)
Definition: Logger.h:200

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

auto table_functions::TableFunction::getOutputsSize ( ) const
inline

Definition at line 59 of file TableFunctionsFactory.h.

References output_args_.

59 { return output_args_.size(); }
const std::vector< ExtArgumentType > output_args_
bool table_functions::TableFunction::isRuntime ( ) const
inline

Definition at line 69 of file TableFunctionsFactory.h.

References is_runtime_.

Member Data Documentation

const std::vector<ExtArgumentType> table_functions::TableFunction::input_args_
private

Definition at line 74 of file TableFunctionsFactory.h.

Referenced by getArgs().

const bool table_functions::TableFunction::is_runtime_
private

Definition at line 76 of file TableFunctionsFactory.h.

Referenced by isRuntime().

const std::string table_functions::TableFunction::name_
private

Definition at line 72 of file TableFunctionsFactory.h.

Referenced by getName().

const std::vector<ExtArgumentType> table_functions::TableFunction::output_args_
private

Definition at line 75 of file TableFunctionsFactory.h.

Referenced by getArgs(), getOutputSQLType(), and getOutputsSize().

const TableFunctionOutputRowSizer table_functions::TableFunction::output_sizer_
private

The documentation for this class was generated from the following files: