@InterfaceStability.Evolving public static class DataDrivenDBInputFormat.DataDrivenDBInputSplit extends DBInputFormat.DBInputSplit
Constructor and Description |
---|
DataDrivenDBInputFormat.DataDrivenDBInputSplit()
Default Constructor
|
DataDrivenDBInputFormat.DataDrivenDBInputSplit(String lower,
String upper)
Convenience Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size.
|
String |
getLowerClause() |
String |
getUpperClause() |
void |
readFields(DataInput input) |
void |
write(DataOutput output) |
getEnd, getLocations, getStart
getLocationInfo
public DataDrivenDBInputFormat.DataDrivenDBInputSplit()
public DataDrivenDBInputFormat.DataDrivenDBInputSplit(String lower, String upper)
lower
- the string to be put in the WHERE clause to guard on the 'lower' endupper
- the string to be put in the WHERE clause to guard on the 'upper' endpublic long getLength() throws IOException
InputSplit
getLength
in class DBInputFormat.DBInputSplit
IOException
public void readFields(DataInput input) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class DBInputFormat.DBInputSplit
IOException
public void write(DataOutput output) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class DBInputFormat.DBInputSplit
IOException
public String getLowerClause()
public String getUpperClause()
Copyright © 2018 Apache Software Foundation. All Rights Reserved.