Module org.apache.lucene.queries
Class PayloadMatcherFactory.IntPayloadMatcher
java.lang.Object
org.apache.lucene.queries.payloads.PayloadMatcherFactory.IntPayloadMatcher
- All Implemented Interfaces:
PayloadMatcher
- Direct Known Subclasses:
PayloadMatcherFactory.GTEIntPayloadMatcher,PayloadMatcherFactory.GTIntPayloadMatcher,PayloadMatcherFactory.LTEIntPayloadMatcher,PayloadMatcherFactory.LTIntPayloadMatcher
- Enclosing class:
PayloadMatcherFactory
private abstract static class PayloadMatcherFactory.IntPayloadMatcher
extends Object
implements PayloadMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancomparePayload(BytesRef source, BytesRef payload) This method tests if two BytesRef match.private intdecodeInt(byte[] bytes, int offset) protected abstract booleanintCompare(int val, int threshold)
-
Constructor Details
-
IntPayloadMatcher
private IntPayloadMatcher()
-
-
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.
-
decodeInt
private int decodeInt(byte[] bytes, int offset) -
intCompare
protected abstract boolean intCompare(int val, int threshold)
-