Package com.yahoo.container.logging
Class Coverage
- java.lang.Object
-
- com.yahoo.container.logging.Coverage
-
public class Coverage extends Object
Carry information about how the query covered the document corpus.
-
-
Constructor Summary
Constructors Constructor Description Coverage(long docs, long active, long soonActive, int degradedReason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getActive()
long
getDocs()
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.long
getSoonActive()
boolean
isDegraded()
boolean
isDegradedByAdapativeTimeout()
boolean
isDegradedByMatchPhase()
boolean
isDegradedByNonIdealState()
boolean
isDegradedByTimeout()
static int
toDegradation(boolean degradeByMatchPhase, boolean degradedByTimeout, boolean degradedByAdaptiveTimeout)
-
-
-
Method Detail
-
getDocs
public long getDocs()
-
getActive
public long getActive()
-
toDegradation
public static int toDegradation(boolean degradeByMatchPhase, boolean degradedByTimeout, boolean degradedByAdaptiveTimeout)
-
getSoonActive
public long getSoonActive()
-
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.
-
-