Class ShardsSegment.Builder
java.lang.Object
co.elastic.clients.elasticsearch.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
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardsSegment
build()
Builds aShardsSegment
.ShardsSegment.Builder
numCommittedSegments(int value)
Required - API name:num_committed_segments
ShardsSegment.Builder
numSearchSegments(int value)
Required - API name:num_search_segments
ShardsSegment.Builder
putSegments(java.lang.String key, Segment value)
Add a key/value tosegments(Map)
, creating the map if needed.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.ShardsSegment.Builder
routing(ShardSegmentRouting value)
Required - API name:routing
ShardsSegment.Builder
routing(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)
Required - API name:routing
ShardsSegment.Builder
segments(java.lang.String key, java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)
Setsegments(Map)
to a singleton map.ShardsSegment.Builder
segments(java.util.Map<java.lang.String,Segment> value)
Required - API name:segments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numCommittedSegments
Required - API name:num_committed_segments
-
routing
Required - API name:routing
-
routing
public ShardsSegment.Builder routing(java.util.function.Function<ShardSegmentRouting.Builder,ObjectBuilder<ShardSegmentRouting>> fn)Required - API name:routing
-
numSearchSegments
Required - API name:num_search_segments
-
segments
Required - 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:
build
in interfaceObjectBuilder<ShardsSegment>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-