Module org.elasticsearch.xcore
Class SearchableSnapshotShardStats.Counter
java.lang.Object
org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotShardStats.Counter
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Direct Known Subclasses:
SearchableSnapshotShardStats.TimedCounter
- Enclosing class:
SearchableSnapshotShardStats
public static class SearchableSnapshotShardStats.Counter
extends Object
implements Writeable, ToXContentObject
-
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
FieldsModifier and TypeFieldDescriptionprotected final longprotected final longprotected final longprotected final longFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(SearchableSnapshotShardStats.Counter counter) booleanlonggetCount()longgetMax()longgetMin()longgetTotal()inthashCode()final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
count
protected final long count -
total
protected final long total -
min
protected final long min -
max
protected final long max
-
-
Constructor Details
-
Counter
public Counter(long count, long total, long min, long max)
-
-
Method Details
-
add
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getCount
public long getCount() -
getTotal
public long getTotal() -
getMin
public long getMin() -
getMax
public long getMax() -
equals
-
hashCode
public int hashCode()
-