|
||||||||||
| 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
@InterfaceStability.Evolving public static class DBInputFormat.DBInputSplit
A InputSplit that spans a set of rows
| Constructor Summary | |
|---|---|
DBInputFormat.DBInputSplit()
Default Constructor |
|
DBInputFormat.DBInputSplit(long start,
long end)
Convenience Constructor |
|
| Method Summary | |
|---|---|
long |
getEnd()
|
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size. |
String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local. |
long |
getStart()
|
void |
readFields(DataInput input)
|
void |
write(DataOutput output)
|
| Methods inherited from class org.apache.hadoop.mapreduce.InputSplit |
|---|
getLocationInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 select| Method Detail |
|---|
public String[] getLocations()
throws IOException
getLocations in class InputSplitIOExceptionpublic long getStart()
public long getEnd()
public long getLength()
throws IOException
InputSplit
getLength in class InputSplitIOException
public void readFields(DataInput input)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput output)
throws IOException
write in interface org.apache.hadoop.io.WritableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||