@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)
Deserialize the fields of this object from
in. |
void |
write(DataOutput output)
Serialize the fields of this object to
out. |
getEnd, getLocations, getStartpublic 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
InputSplitgetLength in class DBInputFormat.DBInputSplitIOExceptionpublic void readFields(DataInput input) throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class DBInputFormat.DBInputSplitinput - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput output) throws IOException
out.write in interface Writablewrite in class DBInputFormat.DBInputSplitoutput - DataOuput to serialize this object into.IOExceptionpublic String getLowerClause()
public String getUpperClause()
Copyright © 2013 Apache Software Foundation. All rights reserved.