|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit
protected 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 total number of bytes in the data of the InputSplit . |
java.lang.String[] |
getLocations()
Get the list of hostnames where the input split is located. |
long |
getStart()
|
void |
readFields(java.io.DataInput input)
Deserialize the fields of this object from in . |
void |
write(java.io.DataOutput output)
Serialize the fields of this object to out . |
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 selectMethod Detail |
---|
public java.lang.String[] getLocations() throws java.io.IOException
getLocations
in interface InputSplit
InputSplit
is
located as an array of String
s.
java.io.IOException
public long getStart()
public long getEnd()
public long getLength() throws java.io.IOException
InputSplit
InputSplit
.
getLength
in interface InputSplit
java.io.IOException
public void readFields(java.io.DataInput input) throws java.io.IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
input
- DataInput
to deseriablize this object from.
java.io.IOException
public void write(java.io.DataOutput output) throws java.io.IOException
out
.
write
in interface Writable
output
- DataOuput
to serialize this object into.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |