Package com.yahoo.search.statistics
Class PeakQpsSearcher.QpsHit
- java.lang.Object
-
- com.yahoo.component.provider.FreezableClass
-
- com.yahoo.component.provider.ListenableFreezableClass
-
- com.yahoo.search.result.Hit
-
- com.yahoo.search.statistics.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.search.result.Hit
Hit.RawUtf8Consumer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEAN_QPS
The name of the field containing mean QPS since the last measurement.static java.lang.String
PEAK_QPS
The name of the field containing peak QPS since the last measurement.static java.lang.String
SCHEME
-
Fields inherited from class com.yahoo.search.result.Hit
RANKFEATURES_FIELD, SDDOCNAME_FIELD
-
-
Constructor Summary
Constructors Constructor Description QpsHit(java.lang.Integer peakQps, java.lang.Double meanQps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMeta()
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.java.lang.String
toString()
-
Methods inherited from class com.yahoo.search.result.Hit
assignId, buildHitField, clearFields, clone, close, compareTo, equals, features, fieldIterator, fieldKeys, fields, forEachField, forEachFieldAsRaw, getDisplayId, getField, getFilled, getId, getQuery, getRelevance, getSearcherSpecificMetaData, getSource, hasField, hasFields, hashCode, isAuxiliary, isCached, isFillable, isFilled, removeField, request, reserve, setAuxiliary, setCached, setField, setFillable, setFilled, setId, setId, setMeta, setQuery, setRelevance, setRelevance, setSearcherSpecificMetaData, setSource, types
-
Methods inherited from class com.yahoo.component.provider.ListenableFreezableClass
addFreezeListener, freeze
-
-
-
-
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
-
SCHEME
public static final java.lang.String SCHEME
- See Also:
- Constant Field Values
-
-
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.
-
-