| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit
org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit
@InterfaceStability.Evolving public static class DataDrivenDBInputFormat.DataDrivenDBInputSplit
A InputSplit that spans a set of rows
| Constructor Summary | |
|---|---|
DataDrivenDBInputFormat.DataDrivenDBInputSplit()
Default Constructor  | 
|
DataDrivenDBInputFormat.DataDrivenDBInputSplit(String lower,
                                               String upper)
Convenience Constructor  | 
|
| Method Summary | |
|---|---|
 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. | 
| Methods inherited from class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit | 
|---|
getEnd, getLocations, getStart | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
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' end| Method Detail | 
|---|
public long getLength()
               throws IOException
InputSplit
getLength in class DBInputFormat.DBInputSplitIOException
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 WritablereadFields in class DBInputFormat.DBInputSplitinput - DataInput to deseriablize this object from.
IOException
public 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()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||