@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, getStart
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
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
readFields
in class DBInputFormat.DBInputSplit
input
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput output) throws IOException
out
.write
in interface Writable
write
in class DBInputFormat.DBInputSplit
output
- DataOuput
to serialize this object into.IOException
public String getLowerClause()
public String getUpperClause()
Copyright © 2013 Apache Software Foundation. All rights reserved.