Class KnnQueryProfileResult.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<KnnQueryProfileResult.Builder>
co.elastic.clients.elasticsearch.core.search.KnnQueryProfileResult.Builder
- All Implemented Interfaces:
WithJson<KnnQueryProfileResult.Builder>
,ObjectBuilder<KnnQueryProfileResult>
- Enclosing class:
- KnnQueryProfileResult
public static class KnnQueryProfileResult.Builder
extends WithJsonObjectBuilderBase<KnnQueryProfileResult.Builder>
implements ObjectBuilder<KnnQueryProfileResult>
Builder for
KnnQueryProfileResult
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - API name:breakdown
Required - API name:breakdown
build()
Builds aKnnQueryProfileResult
.children
(KnnQueryProfileResult value, KnnQueryProfileResult... values) API name:children
API name:children
children
(List<KnnQueryProfileResult> list) API name:children
API name:debug
API name:debug
description
(String value) Required - API name:description
protected KnnQueryProfileResult.Builder
self()
API name:time
API name:time
timeInNanos
(long value) Required - API name:time_in_nanos
Required - API name:type
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
-
type
Required - API name:type
-
description
Required - API name:description
-
time
API name:time
-
time
API name:time
-
timeInNanos
Required - API name:time_in_nanos
-
breakdown
Required - API name:breakdown
-
breakdown
public final KnnQueryProfileResult.Builder breakdown(Function<KnnQueryProfileBreakdown.Builder, ObjectBuilder<KnnQueryProfileBreakdown>> fn) Required - API name:breakdown
-
debug
API name:debug
Adds all entries of
map
todebug
. -
debug
API name:debug
Adds an entry to
debug
. -
children
API name:children
Adds all elements of
list
tochildren
. -
children
public final KnnQueryProfileResult.Builder children(KnnQueryProfileResult value, KnnQueryProfileResult... values) API name:children
Adds one or more values to
children
. -
children
public final KnnQueryProfileResult.Builder children(Function<KnnQueryProfileResult.Builder, ObjectBuilder<KnnQueryProfileResult>> fn) API name:children
Adds a value to
children
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<KnnQueryProfileResult.Builder>
-
build
Builds aKnnQueryProfileResult
.- Specified by:
build
in interfaceObjectBuilder<KnnQueryProfileResult>
- Throws:
NullPointerException
- if some of the required fields are null.
-