org.neo4j.index.impl.lucene
Class IdToEntityIterator<T extends org.neo4j.graphdb.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>, org.neo4j.graphdb.index.IndexHits<T>

public abstract class IdToEntityIterator<T extends org.neo4j.graphdb.PropertyContainer>
extends org.neo4j.helpers.collection.CatchingIteratorWrapper<T,Long>
implements org.neo4j.graphdb.index.IndexHits<T>


Constructor Summary
IdToEntityIterator(org.neo4j.graphdb.index.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(org.neo4j.graphdb.index.IndexHits<Long> ids)
Method Detail

exceptionOk

protected boolean exceptionOk(Throwable t)
Overrides:
exceptionOk in class org.neo4j.helpers.collection.CatchingIteratorWrapper<T extends org.neo4j.graphdb.PropertyContainer,Long>

fetchNextOrNullFromSource

protected Long fetchNextOrNullFromSource(Iterator<Long> source)
Overrides:
fetchNextOrNullFromSource in class org.neo4j.helpers.collection.CatchingIteratorWrapper<T extends org.neo4j.graphdb.PropertyContainer,Long>

currentScore

public float currentScore()
Specified by:
currentScore in interface org.neo4j.graphdb.index.IndexHits<T extends org.neo4j.graphdb.PropertyContainer>

size

public int size()
Specified by:
size in interface org.neo4j.graphdb.index.IndexHits<T extends org.neo4j.graphdb.PropertyContainer>

iterator

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

close

public void close()
Specified by:
close in interface org.neo4j.graphdb.index.IndexHits<T extends org.neo4j.graphdb.PropertyContainer>

getSingle

public T getSingle()
Specified by:
getSingle in interface org.neo4j.graphdb.index.IndexHits<T extends org.neo4j.graphdb.PropertyContainer>


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.