public static class DataDrivenDBInputFormat.DataDrivenDBInputSplit extends DBInputFormat.DBInputSplit
| Constructor and Description |
|---|
DataDrivenDBInputFormat.DataDrivenDBInputSplit()
Default Constructor
|
DataDrivenDBInputFormat.DataDrivenDBInputSplit(java.lang.String lower,
java.lang.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.
|
java.lang.String |
getLowerClause() |
java.lang.String |
getUpperClause() |
void |
readFields(java.io.DataInput input) |
void |
write(java.io.DataOutput output) |
getEnd, getLocations, getStartpublic DataDrivenDBInputFormat.DataDrivenDBInputSplit()
public DataDrivenDBInputFormat.DataDrivenDBInputSplit(java.lang.String lower,
java.lang.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 java.io.IOException
InputSplitgetLength in class DBInputFormat.DBInputSplitjava.io.IOExceptionpublic void readFields(java.io.DataInput input)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class DBInputFormat.DBInputSplitjava.io.IOExceptionpublic void write(java.io.DataOutput output)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablewrite in class DBInputFormat.DBInputSplitjava.io.IOExceptionpublic java.lang.String getLowerClause()
public java.lang.String getUpperClause()
Copyright © 2009 The Apache Software Foundation