Class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>

    • Method Detail

      • getThreshold

        public T getThreshold()
      • getThresholdRequired

        @NotNull
        public T getThresholdRequired()
      • isInclusive

        public boolean isInclusive()
      • computeMatchMetricValue

        @NotNull
        public abstract T computeMatchMetricValue​(String lValue,
                                                  String rValue)
        Computes the appropriate fuzzy match metric - the one that is being compared with the threshold. For example, Levenshtein edit distance (an integer value) or trigram similarity value (a float).
      • getMetricValueClass

        public abstract Class<T> getMetricValueClass()
        Returns the Java type of the metric being used by this method (Integer, Float, ...). TODO consider removal