public class UDFHex extends UDF implements StringUnaryUDF.IUDFUnaryString
Constructor and Description |
---|
UDFHex() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.BytesWritable b)
Convert bytes to a hex string
|
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.IntWritable n) |
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.LongWritable n) |
org.apache.hadoop.io.Text |
evaluate(org.apache.hadoop.io.Text s)
Convert every character in s to two hex digits.
|
getRequiredFiles, getRequiredJars, getResolver, setResolver
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.LongWritable n)
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.IntWritable n)
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.Text s)
evaluate
in interface StringUnaryUDF.IUDFUnaryString
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.BytesWritable b)
Copyright © 2019 The Apache Software Foundation. All rights reserved.