Class IndexSegment.Builder
java.lang.Object
org.opensearch.client.opensearch.indices.segments.IndexSegment.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexSegment>
- Enclosing class:
- IndexSegment
public static class IndexSegment.Builder extends java.lang.Object implements ObjectBuilder<IndexSegment>
Builder for
IndexSegment.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexSegmentbuild()Builds aIndexSegment.IndexSegment.BuilderputShards(java.lang.String key, java.util.List<ShardsSegment> value)Add a key/value toshards(Map), creating the map if needed.IndexSegment.Buildershards(java.util.Map<java.lang.String,java.util.List<ShardsSegment>> value)API name:shards
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shards
public IndexSegment.Builder shards(java.util.Map<java.lang.String,java.util.List<ShardsSegment>> value)API name:shards -
putShards
Add a key/value toshards(Map), creating the map if needed. -
build
Builds aIndexSegment.- Specified by:
buildin interfaceObjectBuilder<IndexSegment>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-