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 Details

    • StringPayloadMatcher

      private StringPayloadMatcher()
  • Method Details

    • comparePayload

      public boolean comparePayload(BytesRef source, BytesRef payload)
      Description copied from interface: PayloadMatcher
      This method tests if two BytesRef match.
      Specified by:
      comparePayload in interface PayloadMatcher
      Parameters:
      source - left side of the compare
      payload - right side of the compare
      Returns:
      true if the BytesRefs are matching, otherwise false.
    • decodeString

      private String decodeString(byte[] bytes, int offset, int length)
    • stringCompare

      protected abstract boolean stringCompare(String val, String threshold)