Package org.apache.solr.search
Class EarlyTerminatingCollectorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.solr.search.EarlyTerminatingCollectorException
-
- All Implemented Interfaces:
Serializable
public class EarlyTerminatingCollectorException extends RuntimeException
Thrown byEarlyTerminatingCollector
when the maximum to abort the scoring / collection process early, when the specified maximum number of documents were collected.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EarlyTerminatingCollectorException(int numberCollected, int numberScanned)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberCollected()
The number of documents collected that resulted in early terminationint
getNumberScanned()
The total number of documents in the index that were "scanned" by the index when collecting thegetNumberCollected()
documents that triggered this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getNumberScanned
public int getNumberScanned()
The total number of documents in the index that were "scanned" by the index when collecting thegetNumberCollected()
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
-
-