Class DecayPlacement<TOrigin,TScale>
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.DecayPlacement<TOrigin,TScale>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DecayPlacement<TOrigin,TScale>
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DecayPlacement<Object,Object>> Json deserializer forDecayPlacementbased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic <TOrigin,TScale>
JsonpDeserializer<DecayPlacement<TOrigin,TScale>> createDecayPlacementDeserializer(JsonpDeserializer<TOrigin> tOriginDeserializer, JsonpDeserializer<TScale> tScaleDeserializer) Create a JSON deserializer for DecayPlacementfinal Doubledecay()Defines how documents are scored at the distance given at scale.static <TOrigin,TScale>
DecayPlacement<TOrigin,TScale> of(Function<DecayPlacement.Builder<TOrigin, TScale>, ObjectBuilder<DecayPlacement<TOrigin, TScale>>> fn) final TScaleoffset()If defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset.final TOriginorigin()The point of origin used for calculating distance.final TScalescale()Defines the distance from origin + offset at which the computed score will equaldecayparameter.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <TOrigin,TScale>
voidsetupDecayPlacementDeserializer(ObjectDeserializer<DecayPlacement.Builder<TOrigin, TScale>> op, JsonpDeserializer<TOrigin> tOriginDeserializer, JsonpDeserializer<TScale> tScaleDeserializer) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDecayPlacementbased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TOrigin,TScale> DecayPlacement<TOrigin,TScale> of(Function<DecayPlacement.Builder<TOrigin, TScale>, ObjectBuilder<DecayPlacement<TOrigin, TScale>>> fn) -
decay
Defines how documents are scored at the distance given at scale.API name:
decay -
offset
If defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset.API name:
offset -
scale
Defines the distance from origin + offset at which the computed score will equaldecayparameter.API name:
scale -
origin
The point of origin used for calculating distance. Must be given as a number for numeric field, date for date fields and geo point for geo fields.API name:
origin -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
createDecayPlacementDeserializer
public static <TOrigin,TScale> JsonpDeserializer<DecayPlacement<TOrigin,TScale>> createDecayPlacementDeserializer(JsonpDeserializer<TOrigin> tOriginDeserializer, JsonpDeserializer<TScale> tScaleDeserializer) Create a JSON deserializer for DecayPlacement -
setupDecayPlacementDeserializer
protected static <TOrigin,TScale> void setupDecayPlacementDeserializer(ObjectDeserializer<DecayPlacement.Builder<TOrigin, TScale>> op, JsonpDeserializer<TOrigin> tOriginDeserializer, JsonpDeserializer<TScale> tScaleDeserializer)
-