OmniSciDB  29e35f4d58
RelLogicalValues Class Reference

#include <RelAlgDagBuilder.h>

+ Inheritance diagram for RelLogicalValues:
+ Collaboration diagram for RelLogicalValues:

Public Member Functions

 RelLogicalValues (const std::vector< TargetMetaInfo > &tuple_type)
 
const std::vector< TargetMetaInfogetTupleType () const
 
std::string toString () const override
 
size_t size () const override
 
std::shared_ptr< RelAlgNodedeepCopy () const override
 
- Public Member Functions inherited from RelAlgNode
 RelAlgNode ()
 
virtual ~RelAlgNode ()
 
void resetQueryExecutionState ()
 
void setContextData (const void *context_data) const
 
void setOutputMetainfo (const std::vector< TargetMetaInfo > &targets_metainfo) const
 
const std::vector< TargetMetaInfo > & getOutputMetainfo () const
 
unsigned getId () const
 
bool hasContextData () const
 
const void * getContextData () const
 
const size_t inputCount () const
 
const RelAlgNodegetInput (const size_t idx) const
 
std::shared_ptr< const RelAlgNodegetAndOwnInput (const size_t idx) const
 
void addManagedInput (std::shared_ptr< const RelAlgNode > input)
 
bool hasInput (const RelAlgNode *needle) const
 
virtual void replaceInput (std::shared_ptr< const RelAlgNode > old_input, std::shared_ptr< const RelAlgNode > input)
 
bool isNop () const
 
void markAsNop ()
 

Private Attributes

const std::vector< TargetMetaInfotuple_type_
 

Additional Inherited Members

- Static Public Member Functions inherited from RelAlgNode
static void resetRelAlgFirstId () noexcept
 
- Protected Attributes inherited from RelAlgNode
std::vector< std::shared_ptr< const RelAlgNode > > inputs_
 
const unsigned id_
 

Detailed Description

Definition at line 1448 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

◆ RelLogicalValues()

RelLogicalValues::RelLogicalValues ( const std::vector< TargetMetaInfo > &  tuple_type)
inline

Definition at line 1450 of file RelAlgDagBuilder.h.

1451  : tuple_type_(tuple_type) {}
const std::vector< TargetMetaInfo > tuple_type_

Member Function Documentation

◆ deepCopy()

std::shared_ptr<RelAlgNode> RelLogicalValues::deepCopy ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1468 of file RelAlgDagBuilder.h.

1468  {
1469  return std::make_shared<RelLogicalValues>(tuple_type_);
1470  }
const std::vector< TargetMetaInfo > tuple_type_

◆ getTupleType()

const std::vector<TargetMetaInfo> RelLogicalValues::getTupleType ( ) const
inline

Definition at line 1453 of file RelAlgDagBuilder.h.

Referenced by RelAlgExecutor::executeLogicalValues().

1453 { return tuple_type_; }
const std::vector< TargetMetaInfo > tuple_type_
+ Here is the caller graph for this function:

◆ size()

size_t RelLogicalValues::size ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1466 of file RelAlgDagBuilder.h.

1466 { return tuple_type_.size(); }
const std::vector< TargetMetaInfo > tuple_type_

◆ toString()

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

Implements RelAlgNode.

Definition at line 1455 of file RelAlgDagBuilder.h.

References to_string().

1455  {
1456  std::string ret =
1457  "(RelLogicalValues<" + std::to_string(reinterpret_cast<uint64_t>(this)) + ">";
1458  for (const auto& target_meta_info : tuple_type_) {
1459  ret += " (" + target_meta_info.get_resname() + " " +
1460  target_meta_info.get_type_info().get_type_name() + ")";
1461  }
1462  ret += " )";
1463  return ret;
1464  }
const std::vector< TargetMetaInfo > tuple_type_
std::string to_string(char const *&&v)
+ Here is the call graph for this function:

Member Data Documentation

◆ tuple_type_

const std::vector<TargetMetaInfo> RelLogicalValues::tuple_type_
private

Definition at line 1473 of file RelAlgDagBuilder.h.


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