public class AtomProjectionCondition extends java.lang.Object implements HGQueryCondition, HGAtomPredicate
An AtomProjectionCondition
will yield all atoms that are
projections along a certain dimension of a given base atom set. The
base atom set is specified as a HGQueryCondition
.
Constructor and Description |
---|
AtomProjectionCondition() |
AtomProjectionCondition(java.lang.String[] dimensionPath,
HGQueryCondition baseSetCondition) |
AtomProjectionCondition(java.lang.String dimensionPath,
HGQueryCondition baseSetCondition) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object x) |
HGQueryCondition |
getBaseSetCondition() |
java.lang.String[] |
getDimensionPath() |
int |
hashCode() |
boolean |
satisfies(HyperGraph graph,
HGHandle handle)
Check whether a given
Object satisfies this
query condition. |
void |
setBaseSetCondition(HGQueryCondition baseSetCondition) |
void |
setDimensionPath(java.lang.String[] dimensionPath) |
public AtomProjectionCondition()
public AtomProjectionCondition(java.lang.String dimensionPath, HGQueryCondition baseSetCondition)
public AtomProjectionCondition(java.lang.String[] dimensionPath, HGQueryCondition baseSetCondition)
public java.lang.String[] getDimensionPath()
public HGQueryCondition getBaseSetCondition()
public boolean satisfies(HyperGraph graph, HGHandle handle)
HGAtomPredicate
Check whether a given Object
satisfies this
query condition.
satisfies
in interface HGAtomPredicate
graph
- The HyperGraph
instance.handle
- The atom on which to test the query condition.true
if the passed in parameter satisfies
the condition and false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object x)
equals
in class java.lang.Object
public void setDimensionPath(java.lang.String[] dimensionPath)
public void setBaseSetCondition(HGQueryCondition baseSetCondition)