souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
55 class ParallelIndexChoice :
public IndexChoice,
public AbstractParallel {
58 Own<Operation> nested, std::string
profileText =
"")
65 resQueryPattern.first.emplace_back(
i->clone());
68 resQueryPattern.second.emplace_back(
i->clone());
76 void print(std::ostream& os,
int tabpos)
const override {
77 os <<
times(
" ", tabpos);
const std::string profileText
Text used by the profiler.
ParallelIndexChoice(std::string rel, int ident, Own< Condition > cond, RamPattern queryPattern, Own< Operation > nested, std::string profileText="")
Use an index to find a tuple in a relation such that a given condition holds in parallel.
Operation & getOperation() const
Get nested operation.
const std::string relation
Search relation.
auto clone(const std::vector< A * > &xs)
detail::multiplying_printer< T > times(const T &value, unsigned num)
A utility printing a given value multiple times.
const std::string & getProfileText() const
Get profile text.
ParallelIndexChoice * clone() const override
Create a clone (i.e.
Use an index to find a tuple in a relation such that a given condition holds.
int getTupleId() const
Get identifier.
void printIndex(std::ostream &os) const
Helper method for printing.
RamPattern queryPattern
Values of index per column of table (if indexable)
std::pair< RamBound, RamBound > RamPattern
Own< Condition > condition
Condition for which a tuple in the relation may hold.
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.
void rel(size_t limit, bool showLimit=true)
const Condition & getCondition() const
Getter for the condition.
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.