SparkR (version 2.1.2)

sha2: sha2

Description

Calculates the SHA-2 family of hash functions of a binary column and returns the value as a hex string.

Usage

sha2(y, x)

# S4 method for Column,numeric sha2(y, x)

Arguments

y

column to compute SHA-2 on.

x

one of 224, 256, 384, or 512.

See Also

Other misc_funcs: crc32, hash, md5, monotonically_increasing_id, sha1

Examples

Run this code
# NOT RUN {
sha2(df$c, 256)
# }

Run the code above in your browser using DataLab