Class DocStats
java.lang.Object
co.elastic.clients.elasticsearch._types.DocStats
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DocStats>Json deserializer forDocStats -
Method Summary
Modifier and TypeMethodDescriptionfinal longcount()Required - Total number of non-deleted documents across all primary shards assigned to selected nodes.final Longdeleted()Total number of deleted documents across all primary shards assigned to selected nodes.static DocStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final StringHuman readable total_size_in_bytesfinal longRequired - Returns the total size in bytes of all documents in this stats.
-
Field Details
-
_DESERIALIZER
Json deserializer forDocStats
-
-
Method Details
-
of
-
count
public final long count()Required - Total number of non-deleted documents across all primary shards assigned to selected nodes. This number is based on documents in Lucene segments and may include documents from nested fields.API name:
count -
deleted
Total number of deleted documents across all primary shards assigned to selected nodes. This number is based on documents in Lucene segments. Elasticsearch reclaims the disk space of deleted Lucene documents when a segment is merged.API name:
deleted -
totalSizeInBytes
public final long totalSizeInBytes()Required - Returns the total size in bytes of all documents in this stats. This value may be more reliable than store_stats.size_in_bytes in estimating the index size.API name:
total_size_in_bytes -
totalSize
Human readable total_size_in_bytesAPI name:
total_size -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDocStatsDeserializer
-