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

    Constructors
    Constructor
    Description
    Coverage(long docs, long active)
    Deprecated.
    Nodes is required element
    Coverage(long docs, long active, int nodes)
     
    Coverage(long docs, long active, int nodes, int resultSets)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    setDegradedReason(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 state

    Methods inherited from class com.yahoo.container.handler.Coverage

    getActive, getDocs, getFull, getFullResultSets, getNodes, getNodesTried, getResultPercentage, getResultSets, getTargetActive, isDegraded, isDegradedByAdapativeTimeout, isDegradedByMatchPhase, isDegradedByNonIdealState, isDegradedByTimeout, merge, toLoggingCoverage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Coverage

      @Deprecated public Coverage(long docs, long active)
      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

      public Coverage setTargetActive(long targetActive)
      Will set number of documents present in ideal state
      Parameters:
      targetActive - number of documents active in ideal state
      Returns:
      self for chaining
    • setDegradedReason

      public Coverage setDegradedReason(int degradedReason)
      Will set the reasons for degraded coverage as reported by vespa backend.
      Parameters:
      degradedReason - reason for degradation
      Returns:
      self for chaining
    • setNodesTried

      public Coverage setNodesTried(int nodesTried)
      Overrides:
      setNodesTried in class com.yahoo.container.handler.Coverage