Class ThreatHuntingFunctions.NormedStringEntropyFunction

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

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

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

  • Constructor Details

    • NormedStringEntropyFunction

      public NormedStringEntropyFunction()
  • Method Details