Module org.apache.lucene.queries
Class PayloadMatcherFactory.FloatPayloadMatcher
java.lang.Object
org.apache.lucene.queries.payloads.PayloadMatcherFactory.FloatPayloadMatcher
- All Implemented Interfaces:
PayloadMatcher
- Direct Known Subclasses:
PayloadMatcherFactory.GTEFloatPayloadMatcher,PayloadMatcherFactory.GTFloatPayloadMatcher,PayloadMatcherFactory.LTEFloatPayloadMatcher,PayloadMatcherFactory.LTFloatPayloadMatcher
- Enclosing class:
PayloadMatcherFactory
private abstract static class PayloadMatcherFactory.FloatPayloadMatcher
extends Object
implements PayloadMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancomparePayload(BytesRef source, BytesRef payload) This method tests if two BytesRef match.private floatdecodeFloat(byte[] bytes, int offset) protected abstract booleanfloatCompare(float val, float threshold)
-
Constructor Details
-
FloatPayloadMatcher
private FloatPayloadMatcher()
-
-
Method Details
-
comparePayload
Description copied from interface:PayloadMatcherThis method tests if two BytesRef match.- Specified by:
comparePayloadin interfacePayloadMatcher- Parameters:
source- left side of the comparepayload- right side of the compare- Returns:
- true if the BytesRefs are matching, otherwise false.
-
decodeFloat
private float decodeFloat(byte[] bytes, int offset) -
floatCompare
protected abstract boolean floatCompare(float val, float threshold)
-