Class DocStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.DocStats.Builder
- All Implemented Interfaces:
CopyableBuilder<DocStats.Builder,,DocStats> MutableBuilder<DocStats.Builder,,DocStats> ObjectBuilder<DocStats>
- Enclosing class:
DocStats
public static class DocStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<DocStats.Builder,DocStats>
Builder for
DocStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final DocStats.Buildercount(long value) Required - The total number of non-deleted documents across all primary shards assigned to the selected nodes.final DocStats.BuilderThe total number of deleted documents across all primary shards assigned to the selected nodes.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<DocStats.Builder,DocStats> - Returns:
- a new builder instance.
-
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 -
build
Builds aDocStats.- Specified by:
buildin interfaceObjectBuilder<DocStats>- Throws:
NullPointerException- if some of the required fields are null.
-