Class ShardsSegment
java.lang.Object
org.opensearch.client.opensearch.indices.segments.ShardsSegment
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardsSegment.Builder,ShardsSegment>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardsSegment
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardsSegment.Builder,ShardsSegment>
The segment information for a shard.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardsSegment> Json deserializer forShardsSegment -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardsSegment.Builderbuilder()booleaninthashCode()final intRequired - The number of committed segments.final intRequired - The number of segments available for search.static ShardsSegmentfinal ShardSegmentRoutingrouting()Required - API name:routingsegments()Required - The detailed information for each segment.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forShardsSegment
-
-
Method Details
-
of
-
numCommittedSegments
public final int numCommittedSegments()Required - The number of committed segments.API name:
num_committed_segments -
numSearchSegments
public final int numSearchSegments()Required - The number of segments available for search.API name:
num_search_segments -
routing
Required - API name:routing -
segments
Required - The detailed information for each segment.API name:
segments -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ShardsSegment.Builder,ShardsSegment> - Returns:
- a new builder instance.
-
builder
-
setupShardsSegmentDeserializer
-
hashCode
public int hashCode() -
equals
-