java.lang.Object
org.elasticsearch.index.store.StoreStats
- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Versionstatic final Versionstatic final longSentinel value for cases where the shard does not yet know its reserved size so we must fall back to an estimate, for instance prior to receiving the list of files in a peer recovery.Fields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionStoreStats(long sizeInBytes, long totalDataSetSizeInBytes, long reservedSize) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(StoreStats stats) A prediction of how much larger this store will eventually grow.getSize()longsize()longlongtoXContent(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
- 
Field Details- 
UNKNOWN_RESERVED_BYTESpublic static final long UNKNOWN_RESERVED_BYTESSentinel value for cases where the shard does not yet know its reserved size so we must fall back to an estimate, for instance prior to receiving the list of files in a peer recovery.- See Also:
 
- 
RESERVED_BYTES_VERSION
- 
TOTAL_DATA_SET_SIZE_SIZE_VERSION
 
- 
- 
Constructor Details- 
StoreStatspublic StoreStats()
- 
StoreStats- Throws:
- IOException
 
- 
StoreStatspublic StoreStats(long sizeInBytes, long totalDataSetSizeInBytes, long reservedSize) - Parameters:
- sizeInBytes- the size of the store in bytes
- totalDataSetSizeInBytes- the size of the total data set in bytes, can differ from sizeInBytes for shards using shared cache storage
- reservedSize- a prediction of how much larger the store is expected to grow, or- UNKNOWN_RESERVED_BYTES.
 
 
- 
- 
Method Details- 
add
- 
sizeInBytespublic long sizeInBytes()
- 
getSizeInBytespublic long getSizeInBytes()
- 
size
- 
getSize
- 
totalDataSetSize
- 
getTotalDataSetSize
- 
totalDataSetSizeInBytespublic long totalDataSetSizeInBytes()
- 
getReservedSizeA prediction of how much larger this store will eventually grow. For instance, if we are currently doing a peer recovery or restoring a snapshot into this store then we can account for the rest of the recovery using this field. A value of-1Bindicates that the reserved size is unknown.
- 
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
 
 
-