com.mysema.query.lucene
Class ResultIterator<T>

java.lang.Object
  extended by com.mysema.query.lucene.ResultIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
com.mysema.commons.lang.CloseableIterator<T>, Closeable, Iterator<T>

public final class ResultIterator<T>
extends Object
implements com.mysema.commons.lang.CloseableIterator<T>

Author:
tiwe

Constructor Summary
ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs, int offset, org.apache.lucene.search.Searcher searcher, org.apache.lucene.document.FieldSelector fieldSelector, com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultIterator

public ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs,
                      int offset,
                      org.apache.lucene.search.Searcher searcher,
                      @Nullable
                      org.apache.lucene.document.FieldSelector fieldSelector,
                      com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>

close

public void close()
Specified by:
close in interface com.mysema.commons.lang.CloseableIterator<T>
Specified by:
close in interface Closeable


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.