primaryTerm
API name:
_primary_term
ObjectBuilder<GetResponse<TDocument>>
public static class GetResponse.Builder<TDocument> extends java.lang.Object implements ObjectBuilder<GetResponse<TDocument>>
GetResponse
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
GetResponse<TDocument> |
build() |
Builds a
GetResponse . |
GetResponse.Builder<TDocument> |
fields(java.util.Map<java.lang.String,JsonData> value) |
API name:
fields |
GetResponse.Builder<TDocument> |
found(boolean value) |
API name:
found |
GetResponse.Builder<TDocument> |
id(java.lang.String value) |
API name:
_id |
GetResponse.Builder<TDocument> |
index(java.lang.String value) |
API name:
_index |
GetResponse.Builder<TDocument> |
primaryTerm(java.lang.Long value) |
API name:
_primary_term |
GetResponse.Builder<TDocument> |
putFields(java.lang.String key,
JsonData value) |
Add a key/value to
fields(Map) , creating the map if needed. |
GetResponse.Builder<TDocument> |
routing(java.lang.String value) |
API name:
_routing |
GetResponse.Builder<TDocument> |
seqNo(java.lang.Integer value) |
API name:
_seq_no |
GetResponse.Builder<TDocument> |
source(TDocument value) |
API name:
_source |
GetResponse.Builder<TDocument> |
tDocumentSerializer(JsonpSerializer<TDocument> value) |
Serializer for TDocument.
|
GetResponse.Builder<TDocument> |
type(java.lang.String value) |
API name:
_type |
GetResponse.Builder<TDocument> |
version(java.lang.Long value) |
API name:
_version |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_index
fields
fields(Map)
, creating the map if needed.found
_id
_primary_term
_routing
_seq_no
_source
_type
_version
GetResponse
.build
in interface ObjectBuilder<TDocument>
java.lang.NullPointerException
- if some of the required fields are null.