Module org.elasticsearch.xcore
Class SearchableSnapshotShardStats.Counter
java.lang.Object
org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotShardStats.Counter
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
SearchableSnapshotShardStats.TimedCounter
- Enclosing class:
SearchableSnapshotShardStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getCount
public long getCount() -
getTotal
public long getTotal() -
getMin
public long getMin() -
getMax
public long getMax() -
equals
-
hashCode
public int hashCode()
-