org.apache.hadoop.hive.ql.udf
Class UDFHex

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by org.apache.hadoop.hive.ql.udf.UDFHex
All Implemented Interfaces:
StringUnaryUDF.IUDFUnaryString

public class UDFHex
extends UDF
implements StringUnaryUDF.IUDFUnaryString

UDFHex.


Constructor Summary
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.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getRequiredFiles, getRequiredJars, getResolver, setResolver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFHex

public UDFHex()
Method Detail

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.