Package com.yahoo.search.result
Class Coverage
java.lang.Object
com.yahoo.container.handler.Coverage
com.yahoo.search.result.Coverage
public class Coverage
extends com.yahoo.container.handler.Coverage
The coverage report for a result set.
- Author:
- Steinar Knutsen, baldersheim
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.container.handler.Coverage
com.yahoo.container.handler.Coverage.FullCoverageDefinition
-
Field Summary
Fields inherited from class com.yahoo.container.handler.Coverage
active, DEGRADED_BY_ADAPTIVE_TIMEOUT, DEGRADED_BY_MATCH_PHASE, DEGRADED_BY_TIMEOUT, degradedReason, docs, fullReason, fullResultSets, nodes, resultSets, targetActive
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetDegradedReason
(int degradedReason) Will set the reasons for degraded coverage as reported by vespa backend.setNodesTried
(int nodesTried) setTargetActive
(long targetActive) Will set number of documents present in ideal stateMethods inherited from class com.yahoo.container.handler.Coverage
getActive, getDocs, getFull, getFullResultSets, getNodes, getNodesTried, getResultPercentage, getResultSets, getTargetActive, isDegraded, isDegradedByAdapativeTimeout, isDegradedByMatchPhase, isDegradedByNonIdealState, isDegradedByTimeout, merge, toLoggingCoverage
-
Constructor Details
-
Coverage
Deprecated.Nodes is required element -
Coverage
public Coverage(long docs, long active, int nodes) -
Coverage
public Coverage(long docs, long active, int nodes, int resultSets)
-
-
Method Details
-
setTargetActive
Will set number of documents present in ideal state- Parameters:
targetActive
- number of documents active in ideal state- Returns:
- self for chaining
-
setDegradedReason
Will set the reasons for degraded coverage as reported by vespa backend.- Parameters:
degradedReason
- reason for degradation- Returns:
- self for chaining
-
setNodesTried
- Overrides:
setNodesTried
in classcom.yahoo.container.handler.Coverage
-