Class ShardsSegment
java.lang.Object
co.elastic.clients.elasticsearch.indices.segments.ShardsSegment
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ShardsSegment extends java.lang.Object implements JsonpSerializable
-
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
-
Constructor Summary
Constructors Constructor Description ShardsSegment(ShardsSegment.Builder builder)
ShardsSegment(java.util.function.Function<ShardsSegment.Builder,ShardsSegment.Builder> fn)
-
Method Summary
Modifier and Type Method Description int
numCommittedSegments()
Required - API name:num_committed_segments
int
numSearchSegments()
Required - API name:num_search_segments
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(DelegatingDeserializer<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
-
-
Constructor Details
-
ShardsSegment
-
ShardsSegment
-
-
Method Details
-
numCommittedSegments
public int numCommittedSegments()Required - API name:num_committed_segments
-
routing
Required - API name:routing
-
numSearchSegments
public 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
protected static void setupShardsSegmentDeserializer(DelegatingDeserializer<ShardsSegment.Builder> op)
-