@InterfaceStability.Evolving public static class DBInputFormat.DBInputSplit extends InputSplit implements 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.
|
String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local.
|
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
in class InputSplit
IOException
public long getStart()
public long getEnd()
public long getLength() throws IOException
InputSplit
getLength
in class InputSplit
IOException
public void readFields(DataInput input) throws 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.IOException
public void write(DataOutput output) throws IOException
out
.write
in interface Writable
output
- DataOuput
to serialize this object into.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.