souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions
souffle::ram::ParallelIndexScan Class Reference

Search for tuples of a relation matching a criteria. More...

#include <ParallelIndexScan.h>

Inheritance diagram for souffle::ram::ParallelIndexScan:
Inheritance graph
Collaboration diagram for souffle::ram::ParallelIndexScan:
Collaboration graph

Public Member Functions

ParallelIndexScanclone () const override
 Create a clone (i.e. More...
 
 ParallelIndexScan (std::string rel, int ident, RamPattern queryPattern, Own< Operation > nested, std::string profileText="")
 
- Public Member Functions inherited from souffle::ram::IndexScan
 IndexScan (std::string rel, int ident, RamPattern queryPattern, Own< Operation > nested, std::string profileText="")
 
- Public Member Functions inherited from souffle::ram::IndexOperation
void apply (const NodeMapper &map) override
 Apply the mapper to all child nodes. More...
 
std::vector< const Node * > getChildNodes () const override
 Obtain list of all embedded child nodes. More...
 
std::pair< std::vector< Expression * >, std::vector< Expression * > > getRangePattern () const
 Get range pattern. More...
 
 IndexOperation (std::string rel, int ident, RamPattern queryPattern, Own< Operation > nested, std::string profileText="")
 
void printIndex (std::ostream &os) const
 Helper method for printing. More...
 
- Public Member Functions inherited from souffle::ram::RelationOperation
const std::string & getRelation () const
 Get search relation. More...
 
 RelationOperation (std::string rel, int ident, Own< Operation > nested, std::string profileText="")
 
- Public Member Functions inherited from souffle::ram::TupleOperation
std::vector< const Node * > getChildNodes () const override
 Obtain list of all embedded child nodes. More...
 
int getTupleId () const
 Get identifier. More...
 
void setTupleId (int id)
 Set identifier. More...
 
 TupleOperation (int ident, Own< Operation > nested, std::string profileText="")
 
- Public Member Functions inherited from souffle::ram::NestedOperation
void apply (const NodeMapper &map) override
 Apply the mapper to all child nodes. More...
 
OperationgetOperation () const
 Get nested operation. More...
 
const std::string & getProfileText () const
 Get profile text. More...
 
 NestedOperation (Own< Operation > nested, std::string profileText="")
 
- Public Member Functions inherited from souffle::ram::Node
bool operator!= (const Node &other) const
 Inequality check for two RAM nodes. More...
 
bool operator== (const Node &other) const
 Equivalence check for two RAM nodes. More...
 
virtual void rewrite (const Node *oldNode, Own< Node > newNode)
 Rewrite a child node. More...
 
virtual ~Node ()=default
 

Protected Member Functions

void print (std::ostream &os, int tabpos) const override
 Pretty print with indentation. More...
 
- Protected Member Functions inherited from souffle::ram::IndexOperation
bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::RelationOperation
bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::TupleOperation
bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::Operation
void print (std::ostream &os) const override
 Print RAM node. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from souffle::ram::Operation
static void print (const Operation *operation, std::ostream &os, int tabpos)
 Pretty print jump-bed. More...
 
- Protected Attributes inherited from souffle::ram::IndexOperation
RamPattern queryPattern
 Values of index per column of table (if indexable) More...
 
- Protected Attributes inherited from souffle::ram::RelationOperation
const std::string relation
 Search relation. More...
 
- Protected Attributes inherited from souffle::ram::TupleOperation
int identifier
 Identifier for the tuple, corresponding to its position in the loop nest. More...
 
- Protected Attributes inherited from souffle::ram::NestedOperation
Own< OperationnestedOperation
 Nested operation. More...
 
const std::string profileText
 Text used by the profiler. More...
 

Detailed Description

Search for tuples of a relation matching a criteria.

For example:

QUERY
...
PARALLEL FOR t1 IN X ON INDEX t1.c = t0.0
...

Definition at line 58 of file ParallelIndexScan.h.

Constructor & Destructor Documentation

◆ ParallelIndexScan()

souffle::ram::ParallelIndexScan::ParallelIndexScan ( std::string  rel,
int  ident,
RamPattern  queryPattern,
Own< Operation nested,
std::string  profileText = "" 
)
inline

Definition at line 60 of file ParallelIndexScan.h.

60  {
61  RamPattern resQueryPattern;
62  for (const auto& i : queryPattern.first) {

References i, and souffle::ram::IndexOperation::queryPattern.

Member Function Documentation

◆ clone()

ParallelIndexScan* souffle::ram::ParallelIndexScan::clone ( ) const
inlineoverridevirtual

Create a clone (i.e.

deep copy) of this node

Reimplemented from souffle::ram::IndexScan.

Definition at line 64 of file ParallelIndexScan.h.

65  : queryPattern.second) {
66  resQueryPattern.second.emplace_back(i->clone());
67  }
68  return new ParallelIndexScan(relation, getTupleId(), std::move(resQueryPattern),
70  }
71 
72 protected:
73  void print(std::ostream& os, int tabpos) const override {
74  os << times(" ", tabpos);

◆ print()

void souffle::ram::ParallelIndexScan::print ( std::ostream &  os,
int  tabpos 
) const
inlineoverrideprotectedvirtual

Pretty print with indentation.

Reimplemented from souffle::ram::IndexScan.

Definition at line 77 of file ParallelIndexScan.h.


The documentation for this class was generated from the following file:
souffle::ram::ParallelIndexScan::ParallelIndexScan
ParallelIndexScan(std::string rel, int ident, RamPattern queryPattern, Own< Operation > nested, std::string profileText="")
Definition: ParallelIndexScan.h:60
souffle::ram::NestedOperation::getOperation
Operation & getOperation() const
Get nested operation.
Definition: NestedOperation.h:62
souffle::ram::RelationOperation::relation
const std::string relation
Search relation.
Definition: RelationOperation.h:60
souffle::clone
auto clone(const std::vector< A * > &xs)
Definition: ContainerUtil.h:172
souffle::ram::ParallelIndexScan::print
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.
Definition: ParallelIndexScan.h:77
souffle::times
detail::multiplying_printer< T > times(const T &value, unsigned num)
A utility printing a given value multiple times.
Definition: StreamUtil.h:322
i
size_t i
Definition: json11.h:663
souffle::ram::NestedOperation::getProfileText
const std::string & getProfileText() const
Get profile text.
Definition: NestedOperation.h:67
souffle::ram::TupleOperation::getTupleId
int getTupleId() const
Get identifier.
Definition: TupleOperation.h:43
souffle::ram::IndexOperation::queryPattern
RamPattern queryPattern
Values of index per column of table (if indexable)
Definition: IndexOperation.h:161
souffle::ram::RamPattern
std::pair< RamBound, RamBound > RamPattern
Definition: IndexOperation.h:42