Class DocStats

java.lang.Object
co.elastic.clients.elasticsearch._types.DocStats
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class DocStats extends Object implements JsonpSerializable
See Also:
  • Field Details

  • 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

      @Nullable public final Long 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

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupDocStatsDeserializer

      protected static void setupDocStatsDeserializer(ObjectDeserializer<DocStats.Builder> op)