Class TopHit
java.lang.Object
co.elastic.clients.elasticsearch.text_structure.find_structure.TopHit
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class TopHit extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopHit.Builder
Builder forTopHit
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TopHit>
_DESERIALIZER
Json deserializer forTopHit
-
Constructor Summary
Constructors Constructor Description TopHit(TopHit.Builder builder)
TopHit(java.util.function.Function<TopHit.Builder,TopHit.Builder> fn)
-
Method Summary
Modifier and Type Method Description long
count()
Required - API name:count
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
setupTopHitDeserializer(DelegatingDeserializer<TopHit.Builder> op)
JsonData
value()
Required - API name:value
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTopHit
-
-
Constructor Details
-
TopHit
-
TopHit
-
-
Method Details
-
count
public long count()Required - API name:count
-
value
Required - API name:value
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTopHitDeserializer
-