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