Class PayloadMatcherFactory.IntPayloadMatcher

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IntPayloadMatcher()  
    • Constructor Detail

      • IntPayloadMatcher

        private IntPayloadMatcher()
    • Method Detail

      • 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.
      • decodeInt

        private int decodeInt​(byte[] bytes,
                              int offset)
      • intCompare

        protected abstract boolean intCompare​(int val,
                                              int threshold)