|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericUDTF()
| Method Detail |
|---|
public void configure(MapredContext mapredContext)
context - context
public 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
HiveExceptionpublic final void setCollector(Collector collector)
collector -
protected final void forward(Object o)
throws HiveException
o -
HiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||