@InterfaceStability.Evolving public static class DBInputFormat.DBInputSplit extends InputSplit implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
DBInputSplit()
Default Constructor
|
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.
|
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) |
getLocationInfopublic DBInputSplit()
public 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 in class InputSplitIOExceptionpublic long getStart()
public long getEnd()
public long getLength()
throws IOException
InputSplitgetLength in class InputSplitIOExceptionpublic void readFields(DataInput input) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput output) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.