Class ShardsSegment.Builder
java.lang.Object
org.opensearch.client.opensearch.indices.segments.ShardsSegment.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardsSegment>
- Enclosing class:
- ShardsSegment
public static class ShardsSegment.Builder extends java.lang.Object implements ObjectBuilder<ShardsSegment>
Builder for
ShardsSegment.-
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 ShardsSegmentbuild()Builds aShardsSegment.ShardsSegment.BuildernumCommittedSegments(java.lang.Number value)API name:num_committed_segmentsShardsSegment.BuildernumSearchSegments(java.lang.Number value)API name:num_search_segmentsShardsSegment.BuilderputSegments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Add a key/value tosegments(Map), creating the map if needed.ShardsSegment.BuilderputSegments(java.lang.String key, Segment value)Add a key/value tosegments(Map), creating the map if needed.ShardsSegment.Builderrouting(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)API name:routingShardsSegment.Builderrouting(ShardSegmentRouting value)API name:routingShardsSegment.Buildersegments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Setsegments(Map)to a singleton map.ShardsSegment.Buildersegments(java.util.Map<java.lang.String,Segment> value)API name:segments
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numCommittedSegments
API name:num_committed_segments -
routing
API name:routing -
routing
public ShardsSegment.Builder routing(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)API name:routing -
numSearchSegments
API name:num_search_segments -
segments
API name:segments -
putSegments
Add a key/value tosegments(Map), creating the map if needed. -
segments
public ShardsSegment.Builder segments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Setsegments(Map)to a singleton map. -
putSegments
public ShardsSegment.Builder putSegments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)Add a key/value tosegments(Map), creating the map if needed. -
build
Builds aShardsSegment.- Specified by:
buildin interfaceObjectBuilder<ShardsSegment>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-