Class EarlyTerminatingCollectorException

    • Constructor Detail

      • EarlyTerminatingCollectorException

        public EarlyTerminatingCollectorException​(int numberCollected,
                                                  int numberScanned)
    • Method Detail

      • getNumberScanned

        public int getNumberScanned()
        The total number of documents in the index that were "scanned" by the index when collecting the getNumberCollected() documents that triggered this exception.

        This number represents the sum of:

        • The total number of documents in all LeafReaders that were fully exhausted during collection
        • The id of the last doc collected in the last LeafReader consulted during collection.
      • getNumberCollected

        public int getNumberCollected()
        The number of documents collected that resulted in early termination