primaryTerm
@Nullable
public final java.lang.Long primaryTerm()
API name:
_primary_term
JsonpSerializable
GetResponse
@JsonpDeserializable public class GetResult<TDocument> extends java.lang.Object implements JsonpSerializable
Modifier and Type | Class | Description |
---|---|---|
protected static class |
GetResult.AbstractBuilder<TDocument,BuilderT extends GetResult.AbstractBuilder<TDocument,BuilderT>> |
|
static class |
GetResult.Builder<TDocument> |
Builder for
GetResult . |
Modifier and Type | Field | Description |
---|---|---|
static JsonpDeserializer<GetResult<java.lang.Object>> |
_DESERIALIZER |
Json deserializer for
GetResult based on named deserializers provided
by the calling JsonMapper . |
Modifier | Constructor | Description |
---|---|---|
protected |
GetResult(GetResult.AbstractBuilder<TDocument,?> builder) |
Modifier and Type | Method | Description |
---|---|---|
static <TDocument> |
createGetResultDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) |
Create a JSON deserializer for GetResult
|
java.util.Map<java.lang.String,JsonData> |
fields() |
API name:
fields |
boolean |
found() |
Required - API name:
found |
static <TDocument> |
getResultOf(java.util.function.Function<GetResult.Builder<TDocument>,ObjectBuilder<GetResult<TDocument>>> fn) |
|
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.Long |
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,
BuilderT extends GetResult.AbstractBuilder<TDocument,
BuilderT>> |
setupGetResultDeserializer(ObjectDeserializer<BuilderT> op,
JsonpDeserializer<TDocument> tDocumentDeserializer) |
|
TDocument |
source() |
API name:
_source |
java.lang.String |
toString() |
|
java.lang.Long |
version() |
API name:
_version |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
GetResult
based on named deserializers provided
by the calling JsonMapper
._index
fields
found
_id
_primary_term
_routing
_seq_no
_source
_version
serialize
in interface JsonpSerializable
toString
in class java.lang.Object