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

#include <RelAlgAbstractInterpreter.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 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 1446 of file RelAlgAbstractInterpreter.h.

Constructor & Destructor Documentation

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

Definition at line 1448 of file RelAlgAbstractInterpreter.h.

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

Member Function Documentation

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

Implements RelAlgNode.

Definition at line 1466 of file RelAlgAbstractInterpreter.h.

1466  {
1467  return std::make_shared<RelLogicalValues>(tuple_type_);
1468  }
const std::vector< TargetMetaInfo > tuple_type_
const std::vector<TargetMetaInfo> RelLogicalValues::getTupleType ( ) const
inline

Definition at line 1451 of file RelAlgAbstractInterpreter.h.

Referenced by RelAlgExecutor::executeLogicalValues().

1451 { return tuple_type_; }
const std::vector< TargetMetaInfo > tuple_type_

+ Here is the caller graph for this function:

size_t RelLogicalValues::size ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1464 of file RelAlgAbstractInterpreter.h.

1464 { return tuple_type_.size(); }
const std::vector< TargetMetaInfo > tuple_type_
std::string RelLogicalValues::toString ( ) const
inlineoverridevirtual

Implements RelAlgNode.

Definition at line 1453 of file RelAlgAbstractInterpreter.h.

References to_string().

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

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 1471 of file RelAlgAbstractInterpreter.h.


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