java.lang.Object
org.elasticsearch.index.get.GetStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
-
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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionGetStats()GetStats(long existsCount, long existsTimeInMillis, long missingCount, long missingTimeInMillis, long current) GetStats(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlongcurrent()booleanlonggetCount()longlonglonglonggetTime()longinthashCode()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
-
Constructor Details
-
GetStats
public GetStats() -
GetStats
- Throws:
IOException
-
GetStats
public GetStats(long existsCount, long existsTimeInMillis, long missingCount, long missingTimeInMillis, long current)
-
-
Method Details
-
add
-
addTotals
-
getCount
public long getCount() -
getTimeInMillis
public long getTimeInMillis() -
getTime
-
getExistsCount
public long getExistsCount() -
getExistsTimeInMillis
public long getExistsTimeInMillis() -
getExistsTime
-
getMissingCount
public long getMissingCount() -
getMissingTimeInMillis
public long getMissingTimeInMillis() -
getMissingTime
-
current
public long current() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-