Class QsqSupRelation
java.lang.Object
edu.harvard.seas.pl.abcdatalog.engine.topdown.Relation
edu.harvard.seas.pl.abcdatalog.engine.topdown.QsqSupRelation
A supplementary relation used in QSQ evaluation.
It is modeled as a node in a linked list. The intention is that each node contains the tuples for the supplementary relation itself, a pointer to the atom that appears after the supplementary relation in the relevant rule, and a pointer to the next supplementary relation in the same rule.
It is modeled as a node in a linked list. The intention is that each node contains the tuples for the supplementary relation itself, a pointer to the atom that appears after the supplementary relation in the relevant rule, and a pointer to the next supplementary relation in the same rule.
-
Field Summary
Modifier and TypeFieldDescriptionPoints to the next supplementary relation in the rule being evaluated.Points to the atom that follows this supplementary relation in the rule being evaluated.Fields inherited from class edu.harvard.seas.pl.abcdatalog.engine.topdown.Relation
arity, attributes, tuples
-
Constructor Summary
ConstructorDescriptionQsqSupRelation
(TermSchema schema) Constructs an empty supplementary relation with the supplied schema. -
Method Summary
Methods inherited from class edu.harvard.seas.pl.abcdatalog.engine.topdown.Relation
add, addAll, applyTuplesAsSubstitutions, contains, filter, getAttributes, isEmpty, iterator, joinAndProject, project, removeAll, renameAttributes, size
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
next
Points to the next supplementary relation in the rule being evaluated. -
nextAtom
Points to the atom that follows this supplementary relation in the rule being evaluated.
-
-
Constructor Details
-
QsqSupRelation
Constructs an empty supplementary relation with the supplied schema.- Parameters:
schema
- schema of supplementary relation
-
-
Method Details