@InterfaceAudience.Public @InterfaceStability.Stable public abstract class GenericUDTF extends Object
| Constructor and Description |
|---|
GenericUDTF() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Called to notify the UDTF that there are no more rows to process.
|
void |
configure(MapredContext mapredContext)
Additionally setup GenericUDTF with MapredContext before initializing.
|
protected void |
forward(Object o)
Passes an output row to the collector.
|
StructObjectInspector |
initialize(ObjectInspector[] argOIs)
Deprecated.
|
StructObjectInspector |
initialize(StructObjectInspector argOIs) |
abstract void |
process(Object[] args)
Give a set of arguments for the UDTF to process.
|
void |
setCollector(Collector collector)
Associates a collector with this UDTF.
|
public void configure(MapredContext mapredContext)
context - contextpublic StructObjectInspector initialize(StructObjectInspector argOIs) throws UDFArgumentException
UDFArgumentException@Deprecated public StructObjectInspector initialize(ObjectInspector[] argOIs) throws UDFArgumentException
argOIs - An array of ObjectInspectors for the argumentsUDFArgumentExceptionpublic abstract void process(Object[] args) throws HiveException
args - object array of argumentsHiveExceptionpublic abstract void close()
throws HiveException
HiveExceptionpublic final void setCollector(Collector collector)
collector - protected final void forward(Object o) throws HiveException
o - HiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.