org.hypergraphdb.query
Class AtomProjectionCondition
java.lang.Object
org.hypergraphdb.query.AtomProjectionCondition
- All Implemented Interfaces:
- HGAtomPredicate, HGQueryCondition
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.
The satisfies will work, but it is not intended to be
used frequently (e.g. in a loop) since it will execute the condition
defined for the base atom set each
- Author:
- Borislav Iordanov
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomProjectionCondition
public AtomProjectionCondition(java.lang.String dimensionPath,
HGQueryCondition baseSetCondition)
AtomProjectionCondition
public AtomProjectionCondition(java.lang.String[] dimensionPath,
HGQueryCondition baseSetCondition)
getDimensionPath
public java.lang.String[] getDimensionPath()
getBaseSetCondition
public HGQueryCondition getBaseSetCondition()
satisfies
public boolean satisfies(HyperGraph graph,
HGHandle handle)
- Description copied from interface:
HGAtomPredicate
Check whether a given Object satisfies this
query condition.
- Specified by:
satisfies in interface HGAtomPredicate
- Parameters:
graph - The HyperGraph instance.handle - The atom on which to test the query condition.
- Returns:
true if the passed in parameter satisfies
the condition and false otherwise.