public class DistributedIterator extends Object implements ResultIterator
Modifier and Type | Field and Description |
---|---|
protected AdvancedCache<?,?> |
cache |
Constructor and Description |
---|
DistributedIterator(org.apache.lucene.search.Sort sort,
int fetchSize,
int resultSize,
int maxResults,
int firstResult,
HashMap<UUID,ClusteredTopDocs> topDocsResponses,
AdvancedCache<?,?> cache) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method must be called on your iterator once you have finished so that any local
or remote resources can be freed up.
|
protected Object |
fetchValue(ClusteredDoc scoreDoc,
ClusteredTopDocs topDoc) |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
protected final AdvancedCache<?,?> cache
public DistributedIterator(org.apache.lucene.search.Sort sort, int fetchSize, int resultSize, int maxResults, int firstResult, HashMap<UUID,ClusteredTopDocs> topDocsResponses, AdvancedCache<?,?> cache)
public void close()
ResultIterator
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ResultIterator
protected Object fetchValue(ClusteredDoc scoreDoc, ClusteredTopDocs topDoc)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.