Class FieldStat
java.lang.Object
co.elastic.clients.elasticsearch.text_structure.find_structure.FieldStat
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class FieldStat extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldStat.Builder
Builder forFieldStat
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FieldStat>
_DESERIALIZER
Json deserializer forFieldStat
-
Constructor Summary
Constructors Constructor Description FieldStat(FieldStat.Builder builder)
FieldStat(java.util.function.Function<FieldStat.Builder,FieldStat.Builder> fn)
-
Method Summary
Modifier and Type Method Description int
cardinality()
Required - API name:cardinality
int
count()
Required - API name:count
java.lang.String
earliest()
API name:earliest
java.lang.String
latest()
API name:latest
java.lang.Integer
maxValue()
API name:max_value
java.lang.Integer
meanValue()
API name:mean_value
java.lang.Integer
medianValue()
API name:median_value
java.lang.Integer
minValue()
API name:min_value
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
setupFieldStatDeserializer(DelegatingDeserializer<FieldStat.Builder> op)
java.util.List<TopHit>
topHits()
Required - API name:top_hits
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forFieldStat
-
-
Constructor Details
-
FieldStat
-
FieldStat
-
-
Method Details
-
count
public int count()Required - API name:count
-
cardinality
public int cardinality()Required - API name:cardinality
-
topHits
Required - API name:top_hits
-
meanValue
@Nullable public java.lang.Integer meanValue()API name:mean_value
-
medianValue
@Nullable public java.lang.Integer medianValue()API name:median_value
-
maxValue
@Nullable public java.lang.Integer maxValue()API name:max_value
-
minValue
@Nullable public java.lang.Integer minValue()API name:min_value
-
earliest
@Nullable public java.lang.String earliest()API name:earliest
-
latest
@Nullable public java.lang.String latest()API name:latest
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupFieldStatDeserializer
-