Class ThreatHuntingFunctions.StringEntropyFunction

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

public static class ThreatHuntingFunctions.StringEntropyFunction extends Object implements DrillSimpleFunc
This function calculates the Shannon Entropy of a given string of text. See: https://en.wikipedia.org/wiki/Entropy_(information_theory) for full definition.

Usage: SELECT entropy() AS entropy FROM... Returns a double

  • Constructor Details

    • StringEntropyFunction

      public StringEntropyFunction()
  • Method Details