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 java.lang.Object implements PayloadMatcher
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStringPayloadMatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancomparePayload(BytesRef source, BytesRef payload)This method tests if two BytesRef match.private java.lang.StringdecodeString(byte[] bytes, int offset, int length)protected abstract booleanstringCompare(java.lang.String val, java.lang.String threshold)
-
-
-
Method Detail
-
comparePayload
public boolean comparePayload(BytesRef source, BytesRef payload)
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.
-
decodeString
private java.lang.String decodeString(byte[] bytes, int offset, int length)
-
stringCompare
protected abstract boolean stringCompare(java.lang.String val, java.lang.String threshold)
-
-