Class PeakQpsSearcher.QpsHit

  • All Implemented Interfaces:
    com.yahoo.component.provider.Freezable, com.yahoo.component.provider.ListenableFreezable, com.yahoo.processing.response.Data, java.lang.Cloneable, java.lang.Comparable<Hit>
    Enclosing class:
    PeakQpsSearcher

    public static class PeakQpsSearcher.QpsHit
    extends Hit
    Meta hit which carries the peak qps and mean qps since the last time this data was requested. The URI is always "meta:qps". The data is stored as Number subclasses in the fields named by the fields PEAK_QPS and MEAN_QPS in the QpsHit class.
    • Field Detail

      • MEAN_QPS

        public static final java.lang.String MEAN_QPS
        The name of the field containing mean QPS since the last measurement.
        See Also:
        Constant Field Values
      • PEAK_QPS

        public static final java.lang.String PEAK_QPS
        The name of the field containing peak QPS since the last measurement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • QpsHit

        public QpsHit​(java.lang.Integer peakQps,
                      java.lang.Double meanQps)
    • Method Detail

      • isMeta

        public boolean isMeta()
        Description copied from class: Hit
        Returns whether this is a concrete hit, containing content of the requested kind, or a meta hit containing information on the collection of hits, the query, the service and so on. This default implementation return false.
        Overrides:
        isMeta in class Hit
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Hit