OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RexFunctionOperator Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RexFunctionOperator:
+ Collaboration diagram for RexFunctionOperator:

Public Types

using ConstRexScalarPtr = std::unique_ptr< const RexScalar >
using ConstRexScalarPtrVector = std::vector< ConstRexScalarPtr >

Public Member Functions

 RexFunctionOperator (const std::string &name, ConstRexScalarPtrVector &operands, const SQLTypeInfo &ti)
std::unique_ptr< const
getDisambiguated (std::vector< std::unique_ptr< const RexScalar >> &operands) const override
const std::string & getName () const
std::string toString () const override
- Public Member Functions inherited from RexOperator
 RexOperator (const SQLOps op, std::vector< std::unique_ptr< const RexScalar >> &operands, const SQLTypeInfo &type)
size_t size () const
const RexScalargetOperand (const size_t idx) const
const RexScalargetOperandAndRelease (const size_t idx) const
SQLOps getOperator () const
const SQLTypeInfogetType () const
- Public Member Functions inherited from Rex
virtual ~Rex ()

Private Attributes

const std::string name_

Additional Inherited Members

- Protected Attributes inherited from RexOperator
const SQLOps op_
std::vector< std::unique_ptr
< const RexScalar > > 
const SQLTypeInfo type_

Detailed Description

Definition at line 401 of file RelAlgDagBuilder.h.

Member Typedef Documentation

Definition at line 403 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

RexFunctionOperator::RexFunctionOperator ( const std::string &  name,
ConstRexScalarPtrVector operands,
const SQLTypeInfo ti 

Definition at line 406 of file RelAlgDagBuilder.h.

Referenced by getDisambiguated().

409  : RexOperator(kFUNCTION, operands, ti), name_(name) {}
const std::string name_
RexOperator(const SQLOps op, std::vector< std::unique_ptr< const RexScalar >> &operands, const SQLTypeInfo &type)
string name

+ Here is the caller graph for this function:

Member Function Documentation

std::unique_ptr<const RexOperator> RexFunctionOperator::getDisambiguated ( std::vector< std::unique_ptr< const RexScalar >> &  operands) const

Reimplemented from RexOperator.

Definition at line 411 of file RelAlgDagBuilder.h.

References RexOperator::getType(), name_, and RexFunctionOperator().

412  {
413  return std::unique_ptr<const RexOperator>(
414  new RexFunctionOperator(name_, operands, getType()));
415  }
const std::string name_
const SQLTypeInfo & getType() const
RexFunctionOperator(const std::string &name, ConstRexScalarPtrVector &operands, const SQLTypeInfo &ti)

+ Here is the call graph for this function:

std::string RexFunctionOperator::toString ( ) const

Reimplemented from RexOperator.

Reimplemented in RexWindowFunctionOperator.

Definition at line 419 of file RelAlgDagBuilder.h.

References cat(), name_, RexOperator::operands_, and typeName().

419  {
420  return cat(::typeName(this), "(", name_, ", operands=", ::toString(operands_), ")");
421  }
std::string toString() const override
std::string cat(Ts &&...args)
const std::string name_
std::vector< std::unique_ptr< const RexScalar > > operands_
std::string typeName(const T *v)
Definition: toString.h:82

+ Here is the call graph for this function:

Member Data Documentation

const std::string RexFunctionOperator::name_

Definition at line 424 of file RelAlgDagBuilder.h.

Referenced by getDisambiguated(), getName(), and toString().

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