Package com.yahoo.container.logging
Class Coverage
java.lang.Object
com.yahoo.container.logging.Coverage
Carry information about how the query covered the document corpus.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
getDocs()
int
An int between 0 (inclusive) and 100 (inclusive) representing how many percent coverage the result sets this Coverage instance contains information about had.long
boolean
boolean
boolean
boolean
boolean
static int
toDegradation
(boolean degradeByMatchPhase, boolean degradedByTimeout, boolean degradedByAdaptiveTimeout)
-
Constructor Details
-
Coverage
public Coverage(long docs, long active, long targetActive, int degradedReason)
-
-
Method Details
-
getDocs
public long getDocs() -
getActive
public long getActive() -
toDegradation
public static int toDegradation(boolean degradeByMatchPhase, boolean degradedByTimeout, boolean degradedByAdaptiveTimeout) -
getTargetActive
public long getTargetActive() -
isDegraded
public boolean isDegraded() -
isDegradedByMatchPhase
public boolean isDegradedByMatchPhase() -
isDegradedByTimeout
public boolean isDegradedByTimeout() -
isDegradedByAdapativeTimeout
public boolean isDegradedByAdapativeTimeout() -
isDegradedByNonIdealState
public boolean isDegradedByNonIdealState() -
getResultPercentage
public int getResultPercentage()An int between 0 (inclusive) and 100 (inclusive) representing how many percent coverage the result sets this Coverage instance contains information about had.
-