Module org.apache.lucene.queries
Class PayloadMatcherFactory.StringPayloadMatcher
java.lang.Object
org.apache.lucene.queries.payloads.PayloadMatcherFactory.StringPayloadMatcher
- All Implemented Interfaces:
PayloadMatcher
- Direct Known Subclasses:
PayloadMatcherFactory.GTEStringPayloadMatcher
,PayloadMatcherFactory.GTStringPayloadMatcher
,PayloadMatcherFactory.LTEStringPayloadMatcher
,PayloadMatcherFactory.LTStringPayloadMatcher
- Enclosing class:
- PayloadMatcherFactory
private abstract static class PayloadMatcherFactory.StringPayloadMatcher
extends Object
implements PayloadMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
comparePayload
(BytesRef source, BytesRef payload) This method tests if two BytesRef match.private String
decodeString
(byte[] bytes, int offset, int length) protected abstract boolean
stringCompare
(String val, String threshold)
-
Constructor Details
-
StringPayloadMatcher
private StringPayloadMatcher()
-
-
Method Details
-
comparePayload
Description copied from interface:PayloadMatcher
This method tests if two BytesRef match.- Specified by:
comparePayload
in interfacePayloadMatcher
- Parameters:
source
- left side of the comparepayload
- right side of the compare- Returns:
- true if the BytesRefs are matching, otherwise false.
-
decodeString
-
stringCompare
-