Class CountResponse
java.lang.Object
co.elastic.clients.elasticsearch.core.CountResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CountResponse extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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
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:_shardsjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCountResponse
-
-
Method Details
-
of
public static CountResponse of(java.util.function.Function<CountResponse.Builder,ObjectBuilder<CountResponse>> fn) -
count
public final long count()Required - API name:count -
shards
Required - API name:_shards -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCountResponseDeserializer
-