Class BuiltinHashFunctions
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.udf.BeamBuiltinFunctionProvider
org.apache.beam.sdk.extensions.sql.impl.udf.BuiltinHashFunctions
@AutoService(BeamBuiltinFunctionProvider.class)
public class BuiltinHashFunctions
extends BeamBuiltinFunctionProvider
Hash Functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]md5Bytes(byte[] bytes) MD5(X)byte[]MD5(X)byte[]sha1Bytes(byte[] bytes) SHA1(X)byte[]sha1String(String str) SHA1(X)byte[]sha256Bytes(byte[] bytes) SHA256(X)byte[]sha256String(String str) SHA256(X)byte[]sha512Bytes(byte[] bytes) SHA512(X)byte[]sha512String(String str) SHA512(X)Methods inherited from class org.apache.beam.sdk.extensions.sql.impl.udf.BeamBuiltinFunctionProvider
getBuiltinMethods
-
Constructor Details
-
BuiltinHashFunctions
public BuiltinHashFunctions()
-
-
Method Details
-
md5String
MD5(X)Calculates the MD5 digest and returns the value as a 16 element
byte[]. -
md5Bytes
public byte[] md5Bytes(byte[] bytes) MD5(X)Calculates the MD5 digest and returns the value as a 16 element
byte[]. -
sha1String
SHA1(X)Calculates the SHA-1 digest and returns the value as a
byte[]. -
sha1Bytes
public byte[] sha1Bytes(byte[] bytes) SHA1(X)Calculates the SHA-1 digest and returns the value as a
byte[]. -
sha256String
SHA256(X)Calculates the SHA-1 digest and returns the value as a
byte[]. -
sha256Bytes
public byte[] sha256Bytes(byte[] bytes) SHA256(X)Calculates the SHA-1 digest and returns the value as a
byte[]. -
sha512String
SHA512(X)Calculates the SHA-1 digest and returns the value as a
byte[]. -
sha512Bytes
public byte[] sha512Bytes(byte[] bytes) SHA512(X)Calculates the SHA-1 digest and returns the value as a
byte[].
-