Class ShardsSegment
java.lang.Object
co.elastic.clients.elasticsearch.indices.segments.ShardsSegment
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ShardsSegment extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShardsSegment.Builder
Builder forShardsSegment
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ShardsSegment>
_DESERIALIZER
Json deserializer forShardsSegment
-
Method Summary
Modifier and Type Method Description int
numCommittedSegments()
Required - API name:num_committed_segments
int
numSearchSegments()
Required - API name:num_search_segments
static ShardsSegment
of(java.util.function.Function<ShardsSegment.Builder,ObjectBuilder<ShardsSegment>> fn)
ShardSegmentRouting
routing()
Required - API name:routing
java.util.Map<java.lang.String,Segment>
segments()
Required - API name:segments
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupShardsSegmentDeserializer(ObjectDeserializer<ShardsSegment.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forShardsSegment
-
-
Method Details
-
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
Required - API name:routing
-
numSearchSegments
public final int numSearchSegments()Required - API name:num_search_segments
-
segments
Required - API name:segments
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupShardsSegmentDeserializer
-