public static class StringDistanceFunctions.LevenstheinDistanceFunction extends Object implements DrillSimpleFunc
This is the number of changes needed to change one sequence into another, where each change is a single character modification (deletion, insertion or substitution).
Usage: SELECT levenshtein_distance( string1, string2 ) FROM...
Constructor and Description |
---|
LevenstheinDistanceFunction() |
public void setup()
setup
in interface DrillSimpleFunc
public void eval()
eval
in interface DrillSimpleFunc
Copyright © 2018 The Apache Software Foundation. All rights reserved.