OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor Class Reference
+ Inheritance diagram for anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor:
+ Collaboration diagram for anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor:

Public Member Functions

bool visitInput (const RexInput *input) const final
 
bool visitLiteral (const RexLiteral *) const final
 
bool visitSubQuery (const RexSubQuery *) const final
 
bool visitRef (const RexRef *) const final
 

Protected Member Functions

bool aggregateResult (const bool &aggregate, const bool &next_result) const final
 
bool defaultResult () const final
 

Detailed Description

CoalesceSecondaryProjectVisitor visits each relational algebra expression node in a given input and determines whether or not the input is a candidate for coalescing into the parent RA node. Intended for use only on the inputs of a RelProject node.

Definition at line 1946 of file RelAlgDag.cpp.

Member Function Documentation

bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::aggregateResult ( const bool &  aggregate,
const bool &  next_result 
) const
inlinefinalprotected

Definition at line 1962 of file RelAlgDag.cpp.

1962  {
1963  return aggregate && next_result;
1964  }
bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::defaultResult ( ) const
inlinefinalprotected

Definition at line 1966 of file RelAlgDag.cpp.

1966 { return true; }
bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::visitInput ( const RexInput input) const
inlinefinal

Definition at line 1948 of file RelAlgDag.cpp.

References anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::input_can_be_coalesced().

1948  {
1949  // The top level expression node is checked before we apply the visitor. If we get
1950  // here, this input rex is a child of another rex node, and we handle the can be
1951  // coalesced check slightly differently
1952  return input_can_be_coalesced(input->getSourceNode(), input->getIndex(), false);
1953  }
bool input_can_be_coalesced(const RelAlgNode *parent_node, const size_t index, const bool first_rex_is_input)
Definition: RelAlgDag.cpp:1925
unsigned getIndex() const
Definition: RelAlgDag.h:174
const RelAlgNode * getSourceNode() const
Definition: RelAlgDag.h:1056

+ Here is the call graph for this function:

bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::visitLiteral ( const RexLiteral ) const
inlinefinal

Definition at line 1955 of file RelAlgDag.cpp.

1955 { return false; }
bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::visitRef ( const RexRef ) const
inlinefinal

Definition at line 1959 of file RelAlgDag.cpp.

1959 { return false; }
bool anonymous_namespace{RelAlgDag.cpp}::anonymous_namespace{RelAlgDag.cpp}::CoalesceSecondaryProjectVisitor::visitSubQuery ( const RexSubQuery ) const
inlinefinal

Definition at line 1957 of file RelAlgDag.cpp.

1957 { return false; }

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