Class DfsProfile.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DfsProfile.Builder>
co.elastic.clients.elasticsearch.core.search.DfsProfile.Builder
- All Implemented Interfaces:
WithJson<DfsProfile.Builder>,ObjectBuilder<DfsProfile>
- Enclosing class:
- DfsProfile
public static class DfsProfile.Builder
extends WithJsonObjectBuilderBase<DfsProfile.Builder>
implements ObjectBuilder<DfsProfile>
Builder for
DfsProfile.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDfsProfile.final DfsProfile.Builderknn(DfsKnnProfile value, DfsKnnProfile... values) API name:knnfinal DfsProfile.BuilderAPI name:knnfinal DfsProfile.Builderknn(List<DfsKnnProfile> list) API name:knnprotected DfsProfile.Builderself()final DfsProfile.Builderstatistics(DfsStatisticsProfile value) API name:statisticsfinal DfsProfile.BuilderAPI name:statisticsMethods 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
-
statistics
API name:statistics -
statistics
public final DfsProfile.Builder statistics(Function<DfsStatisticsProfile.Builder, ObjectBuilder<DfsStatisticsProfile>> fn) API name:statistics -
knn
API name:knnAdds all elements of
listtoknn. -
knn
API name:knnAdds one or more values to
knn. -
knn
public final DfsProfile.Builder knn(Function<DfsKnnProfile.Builder, ObjectBuilder<DfsKnnProfile>> fn) API name:knnAdds a value to
knnusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DfsProfile.Builder>
-
build
Builds aDfsProfile.- Specified by:
buildin interfaceObjectBuilder<DfsProfile>- Throws:
NullPointerException- if some of the required fields are null.
-