public class ShortcutTraversal extends Object
VarTraversals can be represented using shortcut edges.
ShortcutTraversal represents this pattern in order to improve query performance
A VarTraversals can be represented by a shortcut edge when:
| Constructor and Description |
|---|
ShortcutTraversal() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRel(String roletype,
VarName roleplayer) |
void |
addRel(VarName roleplayer) |
void |
setInvalid()
Make this ShortcutTraversal invalid, so it will not be used in the traversal
|
void |
setType(String type) |
public void setInvalid()
public void setType(String type)
type - the type of the variable this ShortcutTraversal representspublic void addRel(VarName roleplayer)
roleplayer - a roleplayer of the relation that this ShortcutTraversal representsCopyright © 2017 Grakn Labs Ltd. All rights reserved.