Class DecayFunction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.query_dsl.ScoreFunctionBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.DecayFunctionBase.AbstractBuilder<DecayFunction.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.DecayFunction.Builder
- All Implemented Interfaces:
ObjectBuilder<DecayFunction>
- Enclosing class:
- DecayFunction
public static class DecayFunction.Builder extends DecayFunctionBase.AbstractBuilder<DecayFunction.Builder> implements ObjectBuilder<DecayFunction>
Builder for
DecayFunction
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DecayFunction
build()
Builds aDecayFunction
.DecayFunction.Builder
field(java.lang.String value)
Required -DecayFunction.Builder
placement(DecayPlacement value)
Required -DecayFunction.Builder
placement(java.util.function.Function<DecayPlacement.Builder,ObjectBuilder<DecayPlacement>> fn)
Required -protected DecayFunction.Builder
self()
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.DecayFunctionBase.AbstractBuilder
multiValueMode
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.ScoreFunctionBase.AbstractBuilder
filter, filter, weight
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - -
placement
Required - -
placement
public final DecayFunction.Builder placement(java.util.function.Function<DecayPlacement.Builder,ObjectBuilder<DecayPlacement>> fn)Required - -
self
- Specified by:
self
in classScoreFunctionBase.AbstractBuilder<DecayFunction.Builder>
-
build
Builds aDecayFunction
.- Specified by:
build
in interfaceObjectBuilder<DecayFunction>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-