Package org.apache.drill.exec.udfs
Class CryptoFunctions.SHA1Function
java.lang.Object
org.apache.drill.exec.udfs.CryptoFunctions.SHA1Function
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- CryptoFunctions
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 Summary
-
Method Summary
-
Constructor Details
-
SHA1Function
public SHA1Function()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-