org.infinispan.query.clustered
Class DistributedIterator
java.lang.Object
org.infinispan.query.clustered.DistributedIterator
- All Implemented Interfaces:
- Iterator<Object>, ResultIterator
- Direct Known Subclasses:
- DistributedLazyIterator
public class DistributedIterator
- extends Object
- implements ResultIterator
DistributedIterator.
Iterates on a distributed query.
- Since:
- 5.1
- Author:
- Israel Lacerra , Marko Luksa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected final AdvancedCache<?,?> cache
DistributedIterator
public DistributedIterator(org.apache.lucene.search.Sort sort,
int fetchSize,
int resultSize,
int maxResults,
int firstResult,
HashMap<UUID,ClusteredTopDocs> topDocsResponses,
AdvancedCache<?,?> cache)
close
public void close()
- Description copied from interface:
ResultIterator
- This method must be called on your iterator once you have finished so that any local
or remote resources can be freed up.
- Specified by:
close
in interface ResultIterator
next
public Object next()
- Specified by:
next
in interface Iterator<Object>
fetchValue
protected Object fetchValue(ClusteredDoc scoreDoc,
ClusteredTopDocs topDoc)
remove
public void remove()
- Specified by:
remove
in interface Iterator<Object>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Object>
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.