Class ClusterHits
- java.lang.Object
-
- com.logicaldoc.core.searchengine.Hits
-
- com.logicaldoc.enterprise.cluster.ClusterHits
-
- All Implemented Interfaces:
Serializable,Iterator<com.logicaldoc.core.searchengine.Hit>
public class ClusterHits extends com.logicaldoc.core.searchengine.Hits- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterHits(Collection<com.logicaldoc.core.searchengine.Hits> hits, Integer maxEntries)An Hits to work with entries coming from different nodes of the clusterClusterHits(List<com.logicaldoc.core.searchengine.Hit> hits, long estimatedCount, long elapsedTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()longgetElapsedTime()longgetEstimatedCount()booleanhasNext()com.logicaldoc.core.searchengine.Hitnext()voidremove()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ClusterHits
public ClusterHits(List<com.logicaldoc.core.searchengine.Hit> hits, long estimatedCount, long elapsedTime)
-
ClusterHits
public ClusterHits(Collection<com.logicaldoc.core.searchengine.Hits> hits, Integer maxEntries)
An Hits to work with entries coming from different nodes of the cluster- Parameters:
hits- The hits collected from the nodes of the clustermaxEntries- Maximum number of entries used for the search
-
-
Method Detail
-
getEstimatedCount
public long getEstimatedCount()
- Overrides:
getEstimatedCountin classcom.logicaldoc.core.searchengine.Hits
-
getElapsedTime
public long getElapsedTime()
- Overrides:
getElapsedTimein classcom.logicaldoc.core.searchengine.Hits
-
getCount
public long getCount()
- Overrides:
getCountin classcom.logicaldoc.core.searchengine.Hits
-
hasNext
public boolean hasNext()
-
next
public com.logicaldoc.core.searchengine.Hit next()
-
-