public class GenericUDFCurrentGroups extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.hadoop.io.Text> |
currentGroups |
Constructor and Description |
---|
GenericUDFCurrentGroups() |
Modifier and Type | Method and Description |
---|---|
void |
copyToNewInstance(Object newInstance)
Some information may be set during initialize() which needs to be saved when the UDF is copied.
|
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
List<org.apache.hadoop.io.Text> |
getCurrentGroups() |
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
void |
setCurrentGroups(List<org.apache.hadoop.io.Text> currentGroups) |
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, flip, getArgOrder, getConstantBooleanValue, getConstantIntValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntervalDayTimeValue, getIntervalYearMonthValue, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
protected List<org.apache.hadoop.io.Text> currentGroups
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
public List<org.apache.hadoop.io.Text> getCurrentGroups()
public void setCurrentGroups(List<org.apache.hadoop.io.Text> currentGroups)
public String getDisplayString(String[] children)
GenericUDF
getDisplayString
in class GenericUDF
public void copyToNewInstance(Object newInstance) throws UDFArgumentException
GenericUDF
copyToNewInstance
in class GenericUDF
UDFArgumentException
Copyright © 2022 The Apache Software Foundation. All rights reserved.