Package org.elasticsearch.index.get
Class GetStats
java.lang.Object
org.elasticsearch.index.get.GetStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class GetStats extends java.lang.Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description GetStats()GetStats(long existsCount, long existsTimeInMillis, long missingCount, long missingTimeInMillis, long current)GetStats(StreamInput in) -
Method Summary
Modifier and Type Method Description voidadd(GetStats stats)voidaddTotals(GetStats stats)longcurrent()longgetCount()longgetExistsCount()org.elasticsearch.common.unit.TimeValuegetExistsTime()longgetExistsTimeInMillis()longgetMissingCount()org.elasticsearch.common.unit.TimeValuegetMissingTime()longgetMissingTimeInMillis()org.elasticsearch.common.unit.TimeValuegetTime()longgetTimeInMillis()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
Method Details
-
add
-
addTotals
-
getCount
public long getCount() -
getTimeInMillis
public long getTimeInMillis() -
getTime
public org.elasticsearch.common.unit.TimeValue getTime() -
getExistsCount
public long getExistsCount() -
getExistsTimeInMillis
public long getExistsTimeInMillis() -
getExistsTime
public org.elasticsearch.common.unit.TimeValue getExistsTime() -
getMissingCount
public long getMissingCount() -
getMissingTimeInMillis
public long getMissingTimeInMillis() -
getMissingTime
public org.elasticsearch.common.unit.TimeValue getMissingTime() -
current
public long current() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.
-