|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.udf.generic.GenericUDTF
public abstract class GenericUDTF
A Generic User-defined Table Generating Function (UDTF) Generates a variable number of output rows for a single input row. Useful for explode(array)...
Constructor Summary | |
---|---|
GenericUDTF()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericUDTF()
Method Detail |
---|
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 arguments
UDFArgumentException
public abstract void process(Object[] args) throws HiveException
args
- object array of arguments
HiveException
public abstract void close() throws HiveException
HiveException
public final void setCollector(Collector collector)
collector
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |