org.jrdf.graph.mem.iterator
Class IteratorFactoryImpl

java.lang.Object
  extended by org.jrdf.graph.mem.iterator.IteratorFactoryImpl
All Implemented Interfaces:
IteratorFactory

public final class IteratorFactoryImpl
extends Object
implements IteratorFactory

Default implementation of the IteratorFactory. Simply uses the normal iterators and an in memory backend.

Version:
$Id: IteratorFactoryImpl.java 1045 2007-01-05 04:56:09Z newmana $
Author:
Andrew Newman

Constructor Summary
IteratorFactoryImpl(LongIndex[] longIndexes, GraphHandler[] graphHandlers)
           
 
Method Summary
 ClosableMemIterator<Triple> newEmptyClosableIterator()
           
 ClosableMemIterator<Triple> newGraphIterator()
           
 ClosableMemIterator<Triple> newOneFixedIterator(Long fixedFirstNode, int index)
           
 ClosableMemIterator<Triple> newThreeFixedIterator(Long[] newNodes)
           
 ClosableMemIterator<Triple> newTwoFixedIterator(Long fixedFirstNode, Long fixedSecondNode, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorFactoryImpl

public IteratorFactoryImpl(LongIndex[] longIndexes,
                           GraphHandler[] graphHandlers)
Method Detail

newEmptyClosableIterator

public ClosableMemIterator<Triple> newEmptyClosableIterator()
Specified by:
newEmptyClosableIterator in interface IteratorFactory

newGraphIterator

public ClosableMemIterator<Triple> newGraphIterator()
Specified by:
newGraphIterator in interface IteratorFactory

newOneFixedIterator

public ClosableMemIterator<Triple> newOneFixedIterator(Long fixedFirstNode,
                                                       int index)
Specified by:
newOneFixedIterator in interface IteratorFactory

newTwoFixedIterator

public ClosableMemIterator<Triple> newTwoFixedIterator(Long fixedFirstNode,
                                                       Long fixedSecondNode,
                                                       int index)
Specified by:
newTwoFixedIterator in interface IteratorFactory

newThreeFixedIterator

public ClosableMemIterator<Triple> newThreeFixedIterator(Long[] newNodes)
Specified by:
newThreeFixedIterator in interface IteratorFactory