org.apache.hadoop.hive.ql.udf
Class UDFHex
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFHex
- All Implemented Interfaces:
- StringUnaryUDF.IUDFUnaryString
public class UDFHex
- extends UDF
- implements StringUnaryUDF.IUDFUnaryString
UDFHex.
Method Summary |
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. |
UDFHex
public UDFHex()
evaluate
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.LongWritable n)
evaluate
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.IntWritable n)
evaluate
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.Text s)
- Convert every character in s to two hex digits.
- Specified by:
evaluate
in interface StringUnaryUDF.IUDFUnaryString
evaluate
public org.apache.hadoop.io.Text evaluate(org.apache.hadoop.io.BytesWritable b)
- Convert bytes to a hex string
Copyright © 2014 The Apache Software Foundation. All rights reserved.