public class GenericUDTFGetSplits extends GenericUDTF
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDTFGetSplits.PlanFragment |
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
bos |
protected DataOutput |
dos |
protected int |
inputArgNumSplits |
protected String |
inputArgQuery |
protected IntObjectInspector |
intOI |
protected org.apache.hadoop.mapred.JobConf |
jc |
protected boolean |
schemaSplitOnly |
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.
|
protected org.apache.hadoop.hive.ql.udf.generic.GenericUDTFGetSplits.SplitResult |
getSplitResult(boolean generateLightWeightSplits) |
protected void |
initArgs(Object[] arguments) |
StructObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDTF.
|
void |
process(Object[] arguments)
Give a set of arguments for the UDTF to process.
|
protected void |
validateInput(ObjectInspector[] arguments) |
configure, forward, initialize, setCollectorprotected transient StringObjectInspector stringOI
protected transient IntObjectInspector intOI
protected transient org.apache.hadoop.mapred.JobConf jc
protected ByteArrayOutputStream bos
protected DataOutput dos
protected String inputArgQuery
protected int inputArgNumSplits
protected boolean schemaSplitOnly
public StructObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDTFinitialize in class GenericUDTFarguments - An array of ObjectInspectors for the argumentsUDFArgumentExceptionprotected void validateInput(ObjectInspector[] arguments) throws UDFArgumentLengthException, UDFArgumentTypeException
public void process(Object[] arguments) throws HiveException
GenericUDTFprocess in class GenericUDTFarguments - object array of argumentsHiveExceptionprotected void initArgs(Object[] arguments)
protected org.apache.hadoop.hive.ql.udf.generic.GenericUDTFGetSplits.SplitResult getSplitResult(boolean generateLightWeightSplits) throws HiveException, IOException
HiveExceptionIOExceptionpublic void close()
throws HiveException
GenericUDTFclose in class GenericUDTFHiveExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.