|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.local.iterator.OrderedIteratorFactoryImpl
public final class OrderedIteratorFactoryImpl
An ordered version of the iterator factory that sorts all results first.
Constructor Summary | |
---|---|
OrderedIteratorFactoryImpl(IteratorFactory newIteratorFactory,
Localizer newLocalizer,
LongIndex newLongIndex,
GraphHandler newGraphHandler,
SortedSetFactory newSetFactory)
|
Method Summary | |
---|---|
ClosableIterator<Triple> |
newEmptyClosableIterator()
Return an new EmptyClosableIterator - indicates no results found. |
ClosableIterator<Triple> |
newGraphIterator()
Return an new GraphIterator - result of an unconstrained find. |
ClosableIterator<Triple> |
newOneFixedIterator(Long fixedFirstNode,
int index)
Return a new FixedIterator - bound by one node. |
ClosableIterator<PredicateNode> |
newPredicateIterator()
Return a new PredicateIterator - all unique predicates. |
ClosableIterator<PredicateNode> |
newPredicateIterator(Long resource)
Return a new PredicateIterator - all unique predicates for a given resource (subject and object). |
ClosableIterator<Triple> |
newThreeFixedIterator(Long[] nodes)
Return a new FixedIterator - bound by three nodes. |
ClosableIterator<Triple> |
newTwoFixedIterator(Long fixedFirstNode,
Long fixedSecondNode,
int index)
Return a new FixedItereator - bound by two nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderedIteratorFactoryImpl(IteratorFactory newIteratorFactory, Localizer newLocalizer, LongIndex newLongIndex, GraphHandler newGraphHandler, SortedSetFactory newSetFactory)
Method Detail |
---|
public ClosableIterator<Triple> newEmptyClosableIterator()
IteratorFactory
newEmptyClosableIterator
in interface IteratorFactory
public ClosableIterator<Triple> newGraphIterator()
IteratorFactory
newGraphIterator
in interface IteratorFactory
public ClosableIterator<Triple> newOneFixedIterator(Long fixedFirstNode, int index)
IteratorFactory
newOneFixedIterator
in interface IteratorFactory
fixedFirstNode
- the node to find.index
- which index (from the three) to use.
public ClosableIterator<Triple> newTwoFixedIterator(Long fixedFirstNode, Long fixedSecondNode, int index)
IteratorFactory
newTwoFixedIterator
in interface IteratorFactory
fixedFirstNode
- the first node to find.fixedSecondNode
- the second node to find.index
- which index (from the three) to use.
public ClosableIterator<Triple> newThreeFixedIterator(Long[] nodes)
IteratorFactory
newThreeFixedIterator
in interface IteratorFactory
nodes
- the triple to find.
public ClosableIterator<PredicateNode> newPredicateIterator()
IteratorFactory
newPredicateIterator
in interface IteratorFactory
public ClosableIterator<PredicateNode> newPredicateIterator(Long resource)
IteratorFactory
newPredicateIterator
in interface IteratorFactory
resource
- all unique predicate for a given resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |