Class StringDistanceFunctions.JaccardDistanceFunction

java.lang.Object
org.apache.drill.exec.udfs.StringDistanceFunctions.JaccardDistanceFunction
All Implemented Interfaces:
DrillFunc, DrillSimpleFunc
Enclosing class:
StringDistanceFunctions

public static class StringDistanceFunctions.JaccardDistanceFunction extends Object implements DrillSimpleFunc
Measures the Jaccard distance of two sets of character sequence. Jaccard distance is the dissimilarity between two sets. It is the complementary of Jaccard similarity.

For further explanation about Jaccard Distance, refer https://en.wikipedia.org/wiki/Jaccard_index

Usage: SELECT jaccard_distance( string1, string2 ) FROM ...

  • Constructor Details

    • JaccardDistanceFunction

      public JaccardDistanceFunction()
  • Method Details