protected static class DBInputFormat.DBInputSplit extends Object implements InputSplit
| 构造器和说明 |
|---|
DBInputFormat.DBInputSplit()
Default Constructor
|
DBInputFormat.DBInputSplit(long start,
long end)
Convenience Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getEnd() |
long |
getLength()
Get the total number of bytes in the data of the
InputSplit. |
String[] |
getLocations()
Get the list of hostnames where the input split is located.
|
long |
getStart() |
void |
readFields(DataInput input)
Deserialize the fields of this object from
in. |
void |
write(DataOutput output)
Serialize the fields of this object to
out. |
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 String[] getLocations() throws IOException
getLocations 在接口中 InputSplitInputSplit is
located as an array of Strings.IOExceptionpublic long getStart()
public long getEnd()
public long getLength()
throws IOException
InputSplitInputSplit.getLength 在接口中 InputSplitIOExceptionpublic void readFields(DataInput input) throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writableinput - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput output) throws IOException
out.write 在接口中 Writableoutput - DataOuput to serialize this object into.IOExceptionCopyright © 2009 The Apache Software Foundation