Class ShardsSegment.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.segments.ShardsSegment.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardsSegment.Builder,,ShardsSegment> MutableBuilder<ShardsSegment.Builder,,ShardsSegment> ObjectBuilder<ShardsSegment>
- Enclosing class:
ShardsSegment
public static class ShardsSegment.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardsSegment.Builder,ShardsSegment>
Builder for
ShardsSegment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardsSegment.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ShardsSegment.BuildernumCommittedSegments(int value) Required - The number of committed segments.final ShardsSegment.BuildernumSearchSegments(int value) Required - The number of segments available for search.final ShardsSegment.BuilderRequired - API name:routingfinal ShardsSegment.Builderrouting(ShardSegmentRouting value) Required - API name:routingfinal ShardsSegment.Buildersegments(String key, Function<Segment.Builder, ObjectBuilder<Segment>> fn) Required - The detailed information for each segment.final ShardsSegment.BuilderRequired - The detailed information for each segment.final ShardsSegment.BuilderRequired - The detailed information for each segment.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<ShardsSegment.Builder,ShardsSegment> - Returns:
- a new builder instance.
-
numCommittedSegments
Required - The number of committed segments.API name:
num_committed_segments -
numSearchSegments
Required - The number of segments available for search.API name:
num_search_segments -
routing
Required - API name:routing -
routing
@Nonnull public final ShardsSegment.Builder routing(Function<ShardSegmentRouting.Builder, ObjectBuilder<ShardSegmentRouting>> fn) Required - API name:routing -
segments
Required - The detailed information for each segment.API name:
segmentsAdds all elements of
maptosegments. -
segments
Required - The detailed information for each segment.API name:
segmentsAdds an entry to
segments. -
segments
@Nonnull public final ShardsSegment.Builder segments(String key, Function<Segment.Builder, ObjectBuilder<Segment>> fn) Required - The detailed information for each segment.API name:
segmentsAdds a value to
segmentsusing a builder lambda. -
build
Builds aShardsSegment.- Specified by:
buildin interfaceObjectBuilder<ShardsSegment>- Throws:
NullPointerException- if some of the required fields are null.
-