public abstract class GenericUDFAesBase extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Modifier and Type | Field and Description |
---|---|
protected Cipher |
cipher |
protected ObjectInspectorConverters.Converter[] |
converters |
protected PrimitiveObjectInspector.PrimitiveCategory[] |
inputTypes |
protected boolean |
isKeyConstant |
protected boolean |
isStr0 |
protected boolean |
isStr1 |
protected org.apache.hadoop.io.BytesWritable |
output |
protected SecretKey |
secretKey |
Constructor and Description |
---|
GenericUDFAesBase() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
aesFunction(byte[] input,
int inputLength,
SecretKey secretKey) |
protected abstract boolean |
canParam0BeStr() |
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
protected abstract int |
getCipherMode() |
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
protected SecretKey |
getSecretKey(byte[] key,
int keyLength) |
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, flip, getArgOrder, getConstantIntValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
protected transient ObjectInspectorConverters.Converter[] converters
protected transient PrimitiveObjectInspector.PrimitiveCategory[] inputTypes
protected final org.apache.hadoop.io.BytesWritable output
protected transient boolean isStr0
protected transient boolean isStr1
protected transient boolean isKeyConstant
protected transient Cipher cipher
protected transient SecretKey secretKey
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDF
initialize
in class GenericUDF
arguments
- The ObjectInspector for the argumentsUDFArgumentException
- Thrown when arguments have wrong types, wrong length, etc.public Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
GenericUDF
evaluate
in class GenericUDF
arguments
- The arguments as DeferedObject, use DeferedObject.get() to get the
actual argument Object. The Objects can be inspected by the
ObjectInspectors passed in the initialize call.HiveException
protected SecretKey getSecretKey(byte[] key, int keyLength)
protected byte[] aesFunction(byte[] input, int inputLength, SecretKey secretKey)
protected abstract int getCipherMode()
protected abstract boolean canParam0BeStr()
public String getDisplayString(String[] children)
GenericUDF
getDisplayString
in class GenericUDF
Copyright © 2016 The Apache Software Foundation. All rights reserved.