primaryTerm
@Nullable
public final java.lang.Long primaryTerm()
API name:
_primary_term
JsonpSerializable
GetResponse
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 | 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 |
type() |
Deprecated.
7.0.0
|
java.lang.Long |
version() |
API name:
_version |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_index
fields
found
_id
_primary_term
_routing
_seq_no
_source
_type
_version
serialize
in interface JsonpSerializable