Class DocStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DocStats.Builder>
co.elastic.clients.elasticsearch._types.DocStats.Builder
- All Implemented Interfaces:
WithJson<DocStats.Builder>,ObjectBuilder<DocStats>
- Enclosing class:
- DocStats
public static class DocStats.Builder
extends WithJsonObjectBuilderBase<DocStats.Builder>
implements ObjectBuilder<DocStats>
Builder for
DocStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocStats.final DocStats.Buildercount(long value) Required - Total number of non-deleted documents across all primary shards assigned to selected nodes.final DocStats.BuilderTotal number of deleted documents across all primary shards assigned to selected nodes.protected DocStats.Builderself()final DocStats.BuilderHuman readable total_size_in_bytesfinal DocStats.BuildertotalSizeInBytes(long value) Required - Returns the total size in bytes of all documents in this stats.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DocStats.Builder>
-
build
Builds aDocStats.- Specified by:
buildin interfaceObjectBuilder<DocStats>- Throws:
NullPointerException- if some of the required fields are null.
-