public static class DBInputFormat.DBInputSplit extends InputSplit implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
DBInputFormat.DBInputSplit()
Default Constructor
|
DBInputFormat.DBInputSplit(long start,
long end)
Convenience Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEnd() |
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size.
|
java.lang.String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local.
|
long |
getStart() |
void |
readFields(java.io.DataInput input) |
void |
write(java.io.DataOutput output) |
public DBInputFormat.DBInputSplit()
public DBInputFormat.DBInputSplit(long start,
long end)
start - the index of the first row to selectend - the index of the last row to selectpublic java.lang.String[] getLocations()
throws java.io.IOException
getLocations in class InputSplitjava.io.IOExceptionpublic long getStart()
public long getEnd()
public long getLength()
throws java.io.IOException
InputSplitgetLength in class InputSplitjava.io.IOExceptionpublic void readFields(java.io.DataInput input)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput output)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionCopyright © 2009 The Apache Software Foundation