Class CryptoFunctions.SHA1Function

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

public static class CryptoFunctions.SHA1Function extends Object implements DrillSimpleFunc
sha() / sha1(): Calculates an SHA-1 160-bit checksum for the string, as described in RFC 3174 (Secure Hash Algorithm). (https://en.wikipedia.org/wiki/SHA-1) The value is returned as a string of 40 hexadecimal digits, or NULL if the argument was NULL. Note that sha() and sha1() are aliases for the same function. > select sha1( 'testing' ) from (VALUES(1));
  • Constructor Details

    • SHA1Function

      public SHA1Function()
  • Method Details