Class ShardsSegment
- java.lang.Object
-
- org.opensearch.client.opensearch.indices.segments.ShardsSegment
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ShardsSegment extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShardsSegment.BuilderBuilder forShardsSegment.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardsSegment>_DESERIALIZERJson deserializer forShardsSegment
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intnumCommittedSegments()Required - API name:num_committed_segmentsintnumSearchSegments()Required - API name:num_search_segmentsstatic ShardsSegmentof(java.util.function.Function<ShardsSegment.Builder,ObjectBuilder<ShardsSegment>> fn)ShardSegmentRoutingrouting()Required - API name:routingjava.util.Map<java.lang.String,Segment>segments()Required - API name:segmentsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupShardsSegmentDeserializer(ObjectDeserializer<ShardsSegment.Builder> op)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ShardsSegment> _DESERIALIZER
Json deserializer forShardsSegment
-
-
Method Detail
-
of
public static ShardsSegment of(java.util.function.Function<ShardsSegment.Builder,ObjectBuilder<ShardsSegment>> fn)
-
numCommittedSegments
public final int numCommittedSegments()
Required - API name:num_committed_segments
-
routing
public final ShardSegmentRouting routing()
Required - API name:routing
-
numSearchSegments
public final int numSearchSegments()
Required - API name:num_search_segments
-
segments
public final java.util.Map<java.lang.String,Segment> segments()
Required - API name:segments
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupShardsSegmentDeserializer
protected static void setupShardsSegmentDeserializer(ObjectDeserializer<ShardsSegment.Builder> op)
-
-