Package org.apache.drill.exec.udfs
Class CryptoFunctions.SHA256Function
java.lang.Object
org.apache.drill.exec.udfs.CryptoFunctions.SHA256Function
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- CryptoFunctions
sha2() / sha256(): Calculates an SHA-2 256-bit checksum for the string. The value is returned as a string of hexadecimal digits,
or NULL if the argument was NULL. Note that sha2() and sha256() are aliases for the same function.
> select sha2( 'testing' ) from (VALUES(1));
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SHA256Function
public SHA256Function()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-