Class PayloadMatcherFactory.FloatPayloadMatcher

    • Constructor Detail

      • FloatPayloadMatcher

        private FloatPayloadMatcher()
    • 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.
      • decodeFloat

        private float decodeFloat​(byte[] bytes,
                                  int offset)
      • floatCompare

        protected abstract boolean floatCompare​(float val,
                                                float threshold)