Module org.elasticsearch.server
Class ExtendedSearchUsageLongCounter
java.lang.Object
org.elasticsearch.action.admin.cluster.stats.ExtendedSearchUsageLongCounter
- All Implemented Interfaces:
ExtendedSearchUsageMetric<ExtendedSearchUsageLongCounter>,NamedWriteable,Writeable,ToXContent,ToXContentFragment
public class ExtendedSearchUsageLongCounter
extends Object
implements ExtendedSearchUsageMetric<ExtendedSearchUsageLongCounter>
An
ExtendedSearchUsageMetric implementation that holds a map of values to counts.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the writeable objectinthashCode()merge(ExtendedSearchUsageMetric<?> other) Merges two equivalent metrics together for statistical reporting.toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ExtendedSearchUsageLongCounter
-
ExtendedSearchUsageLongCounter
- Throws:
IOException
-
-
Method Details
-
getValues
-
merge
Description copied from interface:ExtendedSearchUsageMetricMerges two equivalent metrics together for statistical reporting.- Specified by:
mergein interfaceExtendedSearchUsageMetric<ExtendedSearchUsageLongCounter>- Parameters:
other- AnotherExtendedSearchUsageMetric.- Returns:
- ExtendedSearchUsageMetric The merged metric.
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-