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 Constructor Description BuiltinHashFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]md5Bytes(byte[] bytes)MD5(X)byte[]md5String(java.lang.String str)MD5(X)byte[]sha1Bytes(byte[] bytes)SHA1(X)byte[]sha1String(java.lang.String str)SHA1(X)byte[]sha256Bytes(byte[] bytes)SHA256(X)byte[]sha256String(java.lang.String str)SHA256(X)byte[]sha512Bytes(byte[] bytes)SHA512(X)byte[]sha512String(java.lang.String str)SHA512(X)-
Methods inherited from class org.apache.beam.sdk.extensions.sql.impl.udf.BeamBuiltinFunctionProvider
getBuiltinMethods
-
-
-
-
Method Detail
-
md5String
public byte[] md5String(java.lang.String str)
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
public byte[] sha1String(java.lang.String str)
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
public byte[] sha256String(java.lang.String str)
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
public byte[] sha512String(java.lang.String str)
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[].
-
-