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

#include <RelAlgAbstractInterpreter.h>

+ Inheritance diagram for RexAgg:
+ Collaboration diagram for RexAgg:

Public Member Functions

 RexAgg (const SQLAgg agg, const bool distinct, const SQLTypeInfo &type, const std::vector< size_t > &operands)
 
std::string toString () const override
 
SQLAgg getKind () const
 
bool isDistinct () const
 
size_t size () const
 
size_t getOperand (size_t idx) const
 
const SQLTypeInfogetType () const
 
std::unique_ptr< RexAggdeepCopy () const
 
- Public Member Functions inherited from Rex
virtual ~Rex ()
 

Private Attributes

const SQLAgg agg_
 
const bool distinct_
 
const SQLTypeInfo type_
 
const std::vector< size_t > operands_
 

Detailed Description

Definition at line 570 of file RelAlgAbstractInterpreter.h.

Constructor & Destructor Documentation

RexAgg::RexAgg ( const SQLAgg  agg,
const bool  distinct,
const SQLTypeInfo type,
const std::vector< size_t > &  operands 
)
inline

Definition at line 572 of file RelAlgAbstractInterpreter.h.

576  : agg_(agg), distinct_(distinct), type_(type), operands_(operands) {}
const SQLAgg agg_
const bool distinct_
const SQLTypeInfo type_
const std::vector< size_t > operands_

Member Function Documentation

std::unique_ptr<RexAgg> RexAgg::deepCopy ( ) const
inline

Definition at line 597 of file RelAlgAbstractInterpreter.h.

References agg_, distinct_, operands_, and type_.

597  {
598  return std::make_unique<RexAgg>(agg_, distinct_, type_, operands_);
599  }
const SQLAgg agg_
const bool distinct_
const SQLTypeInfo type_
const std::vector< size_t > operands_
SQLAgg RexAgg::getKind ( ) const
inline

Definition at line 587 of file RelAlgAbstractInterpreter.h.

References agg_.

Referenced by RelAlgTranslator::translateAggregateRex().

587 { return agg_; }
const SQLAgg agg_

+ Here is the caller graph for this function:

size_t RexAgg::getOperand ( size_t  idx) const
inline

Definition at line 593 of file RelAlgAbstractInterpreter.h.

References operands_.

Referenced by RelAlgTranslator::translateAggregateRex().

593 { return operands_[idx]; }
const std::vector< size_t > operands_

+ Here is the caller graph for this function:

const SQLTypeInfo& RexAgg::getType ( ) const
inline

Definition at line 595 of file RelAlgAbstractInterpreter.h.

References type_.

595 { return type_; }
const SQLTypeInfo type_
bool RexAgg::isDistinct ( ) const
inline

Definition at line 589 of file RelAlgAbstractInterpreter.h.

References distinct_.

Referenced by RelAlgTranslator::translateAggregateRex().

589 { return distinct_; }
const bool distinct_

+ Here is the caller graph for this function:

size_t RexAgg::size ( ) const
inline

Definition at line 591 of file RelAlgAbstractInterpreter.h.

References operands_.

Referenced by RelAlgTranslator::translateAggregateRex().

591 { return operands_.size(); }
const std::vector< size_t > operands_

+ Here is the caller graph for this function:

std::string RexAgg::toString ( ) const
inlineoverridevirtual

Implements Rex.

Definition at line 578 of file RelAlgAbstractInterpreter.h.

References agg_, distinct_, SQLTypeInfoCore< TYPE_FACET_PACK >::get_compression_name(), SQLTypeInfoCore< TYPE_FACET_PACK >::get_type_name(), operands_, run_benchmark_import::result, to_string(), and type_.

578  {
579  auto result = "(RexAgg " + std::to_string(agg_) + " " + std::to_string(distinct_) +
580  " " + type_.get_type_name() + " " + type_.get_compression_name();
581  for (auto operand : operands_) {
582  result += " " + std::to_string(operand);
583  }
584  return result + ")";
585  }
std::string to_string(char const *&&v)
const SQLAgg agg_
std::string get_type_name() const
Definition: sqltypes.h:429
const bool distinct_
const SQLTypeInfo type_
const std::vector< size_t > operands_
std::string get_compression_name() const
Definition: sqltypes.h:454

+ Here is the call graph for this function:

Member Data Documentation

const SQLAgg RexAgg::agg_
private

Definition at line 602 of file RelAlgAbstractInterpreter.h.

Referenced by deepCopy(), getKind(), and toString().

const bool RexAgg::distinct_
private

Definition at line 603 of file RelAlgAbstractInterpreter.h.

Referenced by deepCopy(), isDistinct(), and toString().

const std::vector<size_t> RexAgg::operands_
private

Definition at line 605 of file RelAlgAbstractInterpreter.h.

Referenced by deepCopy(), getOperand(), size(), and toString().

const SQLTypeInfo RexAgg::type_
private

Definition at line 604 of file RelAlgAbstractInterpreter.h.

Referenced by deepCopy(), getType(), and toString().


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