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:breakdownRequired - API name:breakdownbuild()Builds aKnnQueryProfileResult.children(KnnQueryProfileResult value, KnnQueryProfileResult... values) API name:childrenAPI name:childrenchildren(List<KnnQueryProfileResult> list) API name:childrenAPI name:debugAPI name:debugdescription(String value) Required - API name:descriptionprotected KnnQueryProfileResult.Builderself()API name:timeAPI name:timetimeInNanos(long value) Required - API name:time_in_nanosRequired - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:debugAdds all entries of
maptodebug. -
debug
API name:debugAdds an entry to
debug. -
children
API name:childrenAdds all elements of
listtochildren. -
children
public final KnnQueryProfileResult.Builder children(KnnQueryProfileResult value, KnnQueryProfileResult... values) API name:childrenAdds one or more values to
children. -
children
public final KnnQueryProfileResult.Builder children(Function<KnnQueryProfileResult.Builder, ObjectBuilder<KnnQueryProfileResult>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<KnnQueryProfileResult.Builder>
-
build
Builds aKnnQueryProfileResult.- Specified by:
buildin interfaceObjectBuilder<KnnQueryProfileResult>- Throws:
NullPointerException- if some of the required fields are null.
-