Class Segment.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.segments.Segment.Builder
- All Implemented Interfaces:
CopyableBuilder<Segment.Builder,,Segment> MutableBuilder<Segment.Builder,,Segment> ObjectBuilder<Segment>
- Enclosing class:
Segment
public static class Segment.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Segment.Builder,Segment>
Builder for
Segment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Segment.Builderattributes(String key, String value) Required - The attributes of the segment.final Segment.Builderattributes(Map<String, String> map) Required - The attributes of the segment.build()Builds aSegment.final Segment.Buildercommitted(boolean value) Required - Whether the segment is committed.final Segment.Buildercompound(boolean value) Required - Whether the segment is compound.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Segment.BuilderdeletedDocs(int value) Required - The number of deleted documents in the segment.final Segment.Buildergeneration(int value) Required - The generation number of the segment.final Segment.BuilderAPI name:memoryfinal Segment.BuildermemoryInBytes(Long value) API name:memory_in_bytesfinal Segment.BuildernumDocs(int value) Required - The number of documents in the segment.final Segment.Buildersearch(boolean value) Required - Whether the segment is searchable.final Segment.BuilderAPI name:sizefinal Segment.BuildersizeInBytes(long value) Required - API name:size_in_bytesfinal Segment.BuilderRequired - API name:versionMethods 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<Segment.Builder,Segment> - Returns:
- a new builder instance.
-
attributes
Required - The attributes of the segment.API name:
attributesAdds all elements of
maptoattributes. -
attributes
Required - The attributes of the segment.API name:
attributesAdds an entry to
attributes. -
committed
Required - Whether the segment is committed.API name:
committed -
compound
Required - Whether the segment is compound.API name:
compound -
deletedDocs
Required - The number of deleted documents in the segment.API name:
deleted_docs -
generation
Required - The generation number of the segment.API name:
generation -
memory
API name:memory -
memoryInBytes
API name:memory_in_bytes -
numDocs
Required - The number of documents in the segment.API name:
num_docs -
search
Required - Whether the segment is searchable.API name:
search -
size
API name:size -
sizeInBytes
Required - API name:size_in_bytes -
version
Required - API name:version -
build
Builds aSegment.- Specified by:
buildin interfaceObjectBuilder<Segment>- Throws:
NullPointerException- if some of the required fields are null.
-