public class GenericUDTFGetSplits extends GenericUDTF
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDTFGetSplits.PlanFragment |
| Modifier and Type | Field and Description |
|---|---|
protected IntObjectInspector |
intOI |
protected org.apache.hadoop.mapred.JobConf |
jc |
protected StringObjectInspector |
stringOI |
| Constructor and Description |
|---|
GenericUDTFGetSplits() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called to notify the UDTF that there are no more rows to process.
|
GenericUDTFGetSplits.PlanFragment |
createPlanFragment(String query,
int num,
org.apache.hadoop.yarn.api.records.ApplicationId splitsAppId) |
org.apache.hadoop.mapred.InputSplit[] |
getSplits(org.apache.hadoop.mapred.JobConf job,
int numSplits,
TezWork work,
Schema schema,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
boolean generateSingleSplit) |
StructObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDTF.
|
void |
process(Object[] arguments)
Give a set of arguments for the UDTF to process.
|
configure, forward, initialize, setCollectorprotected transient StringObjectInspector stringOI
protected transient IntObjectInspector intOI
protected transient org.apache.hadoop.mapred.JobConf jc
public StructObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDTFinitialize in class GenericUDTFarguments - An array of ObjectInspectors for the argumentsUDFArgumentExceptionpublic void process(Object[] arguments) throws HiveException
GenericUDTFprocess in class GenericUDTFarguments - object array of argumentsHiveExceptionpublic GenericUDTFGetSplits.PlanFragment createPlanFragment(String query, int num, org.apache.hadoop.yarn.api.records.ApplicationId splitsAppId) throws HiveException
HiveExceptionpublic org.apache.hadoop.mapred.InputSplit[] getSplits(org.apache.hadoop.mapred.JobConf job,
int numSplits,
TezWork work,
Schema schema,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
boolean generateSingleSplit)
throws IOException
IOExceptionpublic void close()
throws HiveException
GenericUDTFclose in class GenericUDTFHiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.