Class 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 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 cluster
        maxEntries - Maximum number of entries used for the search
    • Method Detail

      • getEstimatedCount

        public long getEstimatedCount()
        Overrides:
        getEstimatedCount in class com.logicaldoc.core.searchengine.Hits
      • getElapsedTime

        public long getElapsedTime()
        Overrides:
        getElapsedTime in class com.logicaldoc.core.searchengine.Hits
      • getCount

        public long getCount()
        Overrides:
        getCount in class com.logicaldoc.core.searchengine.Hits
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<com.logicaldoc.core.searchengine.Hit>
        Overrides:
        hasNext in class com.logicaldoc.core.searchengine.Hits
      • next

        public com.logicaldoc.core.searchengine.Hit next()
        Specified by:
        next in interface Iterator<com.logicaldoc.core.searchengine.Hit>
        Overrides:
        next in class com.logicaldoc.core.searchengine.Hits
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<com.logicaldoc.core.searchengine.Hit>
        Overrides:
        remove in class com.logicaldoc.core.searchengine.Hits