public class NodeRelation extends Object
Relation
associated with a number of named NodeMaker
s.
TODO: This is really just a Relation and a BindingMaker wrapped into one. Refactor as such?Modifier and Type | Field and Description |
---|---|
static NodeRelation |
TRUE |
Constructor and Description |
---|
NodeRelation(Relation base,
Map<Var,NodeMaker> nodeMakers) |
Modifier and Type | Method and Description |
---|---|
Relation |
baseRelation() |
static NodeRelation |
empty(Set<Var> variables) |
NodeRelation |
extendWith(Binding binding)
Joins this NodeRelation with a Binding.
|
NodeRelation |
limit(int limit) |
NodeMaker |
nodeMaker(Var variables) |
NodeRelation |
orderBy(Var variable,
boolean ascending) |
NodeRelation |
renameSingleRelation(RelationName oldName,
RelationName newName) |
NodeRelation |
select(Expression expression) |
String |
toString() |
Set<Var> |
variables() |
NodeRelation |
withPrefix(int index) |
public static final NodeRelation TRUE
public static NodeRelation empty(Set<Var> variables)
public Relation baseRelation()
public NodeRelation withPrefix(int index)
public NodeRelation renameSingleRelation(RelationName oldName, RelationName newName)
public NodeRelation extendWith(Binding binding)
binding
- A binding to join with this NodeRelationpublic NodeRelation select(Expression expression)
public NodeRelation orderBy(Var variable, boolean ascending)
public NodeRelation limit(int limit)