org.neo4j.index.impl.lucene
Class IdToEntityIterator<T extends PropertyContainer>

java.lang.Object
  extended by org.neo4j.helpers.collection.PrefetchingIterator<T>
      extended by org.neo4j.helpers.collection.CatchingIteratorWrapper<T,Long>
          extended by org.neo4j.index.impl.lucene.IdToEntityIterator<T>
All Implemented Interfaces:
Iterable<T>, Iterator<T>, IndexHits<T>

public abstract class IdToEntityIterator<T extends PropertyContainer>
extends CatchingIteratorWrapper<T,Long>
implements IndexHits<T>


Constructor Summary
IdToEntityIterator(IndexHits<Long> ids)
           
 
Method Summary
 void close()
           
 float currentScore()
           
protected  boolean exceptionOk(Throwable t)
           
protected  Long fetchNextOrNullFromSource(Iterator<Long> source)
           
 T getSingle()
           
 Iterator<T> iterator()
           
 int size()
           
 
Methods inherited from class org.neo4j.helpers.collection.CatchingIteratorWrapper
fetchNextOrNull, itemDodged, underlyingObjectToObject
 
Methods inherited from class org.neo4j.helpers.collection.PrefetchingIterator
getPrefetchedNextOrNull, hasNext, next, remove, setPrefetchedNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

IdToEntityIterator

public IdToEntityIterator(IndexHits<Long> ids)
Method Detail

exceptionOk

protected boolean exceptionOk(Throwable t)
Overrides:
exceptionOk in class CatchingIteratorWrapper<T extends PropertyContainer,Long>

fetchNextOrNullFromSource

protected Long fetchNextOrNullFromSource(Iterator<Long> source)
Overrides:
fetchNextOrNullFromSource in class CatchingIteratorWrapper<T extends PropertyContainer,Long>

currentScore

public float currentScore()
Specified by:
currentScore in interface IndexHits<T extends PropertyContainer>

size

public int size()
Specified by:
size in interface IndexHits<T extends PropertyContainer>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T extends PropertyContainer>

close

public void close()
Specified by:
close in interface IndexHits<T extends PropertyContainer>

getSingle

public T getSingle()
Specified by:
getSingle in interface IndexHits<T extends PropertyContainer>


Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.