Interface PayloadDecoder
-
public interface PayloadDecoderDefines a way of converting payloads to float values, for use byPayloadScoreQuery
-
-
Field Summary
Fields Modifier and Type Field Description static PayloadDecoderFLOAT_DECODERAPayloadDecoderthat interprets the bytes of a payload as a float
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatcomputePayloadFactor(BytesRef payload)Compute a float value for the given payload
-
-
-
Field Detail
-
FLOAT_DECODER
static final PayloadDecoder FLOAT_DECODER
APayloadDecoderthat interprets the bytes of a payload as a float
-
-
Method Detail
-
computePayloadFactor
float computePayloadFactor(BytesRef payload)
Compute a float value for the given payload
-
-