java.lang.Object
org.elasticsearch.index.shard.DocsStats
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionDocsStats(long count, long deleted, long totalSizeInBytes) DocsStats(StreamInput in) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidlonggetCount()longlongReturns the total size in bytes of all documents in this stats.toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
DocsStatspublic DocsStats()
- 
DocsStats- Throws:
- IOException
 
- 
DocsStatspublic DocsStats(long count, long deleted, long totalSizeInBytes) 
 
- 
- 
Method Details- 
add
- 
getCountpublic long getCount()
- 
getDeletedpublic long getDeleted()
- 
getTotalSizeInBytespublic long getTotalSizeInBytes()Returns the total size in bytes of all documents in this stats. This value may be more reliable thanStoreStats.getSizeInBytes()in estimating the index size.
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
 
-