Class DocStats
java.lang.Object
org.opensearch.client.opensearch._types.DocStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<DocStats.Builder,DocStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class DocStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<DocStats.Builder,DocStats>
The document-level statistics.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DocStats> Json deserializer forDocStats -
Method Summary
Modifier and TypeMethodDescriptionstatic DocStats.Builderbuilder()final longcount()Required - The total number of non-deleted documents across all primary shards assigned to the selected nodes.final Longdeleted()The total number of deleted documents across all primary shards assigned to the selected nodes.booleaninthashCode()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 voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forDocStats
-
-
Method Details
-
of
-
count
public final long count()Required - The total number of non-deleted documents across all primary shards assigned to the selected nodes. This number is based on documents in Lucene segments and may include documents from nested fields.API name:
count -
deleted
The total number of deleted documents across all primary shards assigned to the selected nodes. This number is based on the number of documents stored in Lucene segments. OpenSearch reclaims the disk space previously occupied by the deleted Lucene documents when a segment is merged.API name:
deleted -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DocStats.Builder,DocStats> - Returns:
- a new builder instance.
-
builder
-
setupDocStatsDeserializer
-
hashCode
public int hashCode() -
equals
-