primaryTerm
@Nullable
public java.lang.Long primaryTerm()
API name:
_primary_term
JsonpSerializable
public final class Hit<TDocument> extends java.lang.Object implements JsonpSerializable
Modifier and Type | Class | Description |
---|---|---|
static class |
Hit.Builder<TDocument> |
Builder for
Hit . |
Constructor | Description |
---|---|
Hit(Hit.Builder<TDocument> builder) |
|
Hit(java.util.function.Function<Hit.Builder<TDocument>,Hit.Builder<TDocument>> fn) |
Modifier and Type | Method | Description |
---|---|---|
static <TDocument> |
createHitDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) |
Create a json deserializer for Hit
|
MainError |
error() |
API name:
error |
java.util.Map<java.lang.String,JsonData> |
fields() |
API name:
fields |
java.lang.Boolean |
found() |
API name:
found |
java.lang.String |
id() |
Required - API name:
_id |
java.lang.String |
index() |
Required - API name:
_index |
java.lang.Long |
primaryTerm() |
API name:
_primary_term |
java.lang.String |
routing() |
API name:
_routing |
java.lang.Integer |
seqNo() |
API name:
_seq_no |
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 <TDocument> |
setupHitDeserializer(DelegatingDeserializer<Hit.Builder<TDocument>> op,
JsonpDeserializer<TDocument> tDocumentDeserializer) |
|
TDocument |
source() |
API name:
_source |
java.lang.String |
type() |
API name:
_type |
java.lang.Long |
version() |
API name:
_version |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
error
fields
found
_id
_index
_primary_term
_routing
_seq_no
_source
_type
_version
serialize
in interface JsonpSerializable