Class CountResponse
- java.lang.Object
-
- org.opensearch.client.opensearch.core.CountResponse
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CountResponse extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCountResponse.BuilderBuilder forCountResponse.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CountResponse>_DESERIALIZERJson deserializer forCountResponse
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()Required - API name:countstatic CountResponseof(java.util.function.Function<CountResponse.Builder,ObjectBuilder<CountResponse>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCountResponseDeserializer(ObjectDeserializer<CountResponse.Builder> op)ShardStatisticsshards()Required - API name:_shards
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CountResponse> _DESERIALIZER
Json deserializer forCountResponse
-
-
Method Detail
-
of
public static CountResponse of(java.util.function.Function<CountResponse.Builder,ObjectBuilder<CountResponse>> fn)
-
count
public final long count()
Required - API name:count
-
shards
public final ShardStatistics shards()
Required - API name:_shards
-
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)
-
setupCountResponseDeserializer
protected static void setupCountResponseDeserializer(ObjectDeserializer<CountResponse.Builder> op)
-
-