org.infinispan.query.clustered.DistributedIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-query Show documentation
Show all versions of infinispan-query Show documentation
Infinispan Query API module
The newest version!
package org.infinispan.query.clustered;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.apache.lucene.search.ScoreDoc;
import org.apache.lucene.search.Sort;
import org.apache.lucene.search.TopDocs;
import org.apache.lucene.search.TopFieldDocs;
import org.infinispan.AdvancedCache;
import org.infinispan.commons.api.query.ClosableIteratorWithCount;
import org.infinispan.commons.api.query.HitCount;
import org.infinispan.commons.time.TimeService;
import org.infinispan.metadata.Metadata;
import org.infinispan.query.core.stats.impl.LocalQueryStatistics;
import org.infinispan.query.dsl.TotalHitCount;
import org.infinispan.remoting.transport.Address;
import org.infinispan.security.actions.SecurityActions;
/**
* Iterates on the results of a distributed query returning the values. Subclasses can customize this by overriding the
* {@link #decorate(Object, Object, float, Metadata)} method.
*
* @param The return type of the iterator
* @author Israel Lacerra <[email protected]>
* @author Marko Luksa
* @author Sanne Grinovero
* @since 5.1
*/
class DistributedIterator implements ClosableIteratorWithCount {
protected final AdvancedCache
© 2015 - 2025 Weber Informatics LLC | Privacy Policy