public static class StringDistanceFunctions.JaroDistanceFunction extends Object implements DrillSimpleFunc
The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. Winkler increased this measure for matching initial characters.
This implementation is based on the Jaro Winkler similarity algorithm from https://en.wikipedia.org/wiki/Jaro–Winkler_distance
Usage: SELECT jaro_distance( string1, string2 ) FROM...
Constructor and Description |
---|
JaroDistanceFunction() |
public void setup()
setup
in interface DrillSimpleFunc
public void eval()
eval
in interface DrillSimpleFunc
Copyright © 2018 The Apache Software Foundation. All rights reserved.