Class IndexSegment.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.segments.IndexSegment.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexSegment.Builder,,IndexSegment> MutableBuilder<IndexSegment.Builder,,IndexSegment> ObjectBuilder<IndexSegment>
- Enclosing class:
IndexSegment
public static class IndexSegment.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexSegment.Builder,IndexSegment>
Builder for
IndexSegment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexSegment.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IndexSegment.Buildershards(String key, List<ShardsSegment> value) Required - The segment information for each shard.final IndexSegment.Buildershards(Map<String, List<ShardsSegment>> map) Required - The segment information for each shard.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<IndexSegment.Builder,IndexSegment> - Returns:
- a new builder instance.
-
shards
Required - The segment information for each shard.API name:
shardsAdds all elements of
maptoshards. -
shards
Required - The segment information for each shard.API name:
shardsAdds an entry to
shards. -
build
Builds aIndexSegment.- Specified by:
buildin interfaceObjectBuilder<IndexSegment>- Throws:
NullPointerException- if some of the required fields are null.
-