Class HitsMetadata.Builder<T>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HitsMetadata.Builder<T>>
co.elastic.clients.elasticsearch.core.search.HitsMetadata.Builder<T>
- All Implemented Interfaces:
WithJson<HitsMetadata.Builder<T>>
,ObjectBuilder<HitsMetadata<T>>
- Enclosing class:
- HitsMetadata<T>
public static class HitsMetadata.Builder<T>
extends WithJsonObjectBuilderBase<HitsMetadata.Builder<T>>
implements ObjectBuilder<HitsMetadata<T>>
Builder for
HitsMetadata
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHitsMetadata
.final HitsMetadata.Builder<T>
Required - API name:hits
final HitsMetadata.Builder<T>
hits
(Function<Hit.Builder<T>, ObjectBuilder<Hit<T>>> fn) Required - API name:hits
final HitsMetadata.Builder<T>
Required - API name:hits
final HitsMetadata.Builder<T>
API name:max_score
protected HitsMetadata.Builder<T>
self()
final HitsMetadata.Builder<T>
Total hit count information, present only iftrack_total_hits
wasn'tfalse
in the search request.final HitsMetadata.Builder<T>
Total hit count information, present only iftrack_total_hits
wasn'tfalse
in the search request.final HitsMetadata.Builder<T>
tSerializer
(JsonpSerializer<T> value) Serializer for T.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
total
Total hit count information, present only iftrack_total_hits
wasn'tfalse
in the search request.API name:
total
-
total
Total hit count information, present only iftrack_total_hits
wasn'tfalse
in the search request.API name:
total
-
hits
Required - API name:hits
Adds all elements of
list
tohits
. -
hits
Required - API name:hits
Adds one or more values to
hits
. -
hits
Required - API name:hits
Adds a value to
hits
using a builder lambda. -
maxScore
API name:max_score
Defaults to
Double.NaN
if parsed from a JSONnull
value. -
tSerializer
Serializer for T. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HitsMetadata.Builder<T>>
-
build
Builds aHitsMetadata
.- Specified by:
build
in interfaceObjectBuilder<T>
- Throws:
NullPointerException
- if some of the required fields are null.
-