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:
-
Constructor Summary
ConstructorDescriptionClusterHits
(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
Methods inherited from class com.logicaldoc.core.searchengine.Hits
toHit
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 Details
-
ClusterHits
public ClusterHits(List<com.logicaldoc.core.searchengine.Hit> hits, long estimatedCount, long elapsedTime) -
ClusterHits
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 Details
-
getEstimatedCount
public long getEstimatedCount()- Overrides:
getEstimatedCount
in classcom.logicaldoc.core.searchengine.Hits
-
getElapsedTime
public long getElapsedTime()- Overrides:
getElapsedTime
in classcom.logicaldoc.core.searchengine.Hits
-
getCount
public long getCount()- Overrides:
getCount
in classcom.logicaldoc.core.searchengine.Hits
-
hasNext
public boolean hasNext() -
next
public com.logicaldoc.core.searchengine.Hit next() -
remove
public void remove()
-