public class ListStringSplit extends java.lang.Object implements InputSplit
| Constructor and Description |
|---|
ListStringSplit(java.util.List<java.util.List<java.lang.String>> data) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.List<java.lang.String>> |
getData() |
long |
length()
Length of the split
|
java.net.URI[] |
locations()
Locations of the splits
|
java.util.Iterator<java.net.URI> |
locationsIterator() |
java.util.Iterator<java.lang.String> |
locationsPathIterator() |
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from
in. |
void |
reset()
Reset the InputSplit without reinitializing it from scratch.
|
double |
toDouble()
Convert Writable to double.
|
float |
toFloat()
Convert Writable to float.
|
int |
toInt()
Convert Writable to int.
|
long |
toLong()
Convert Writable to long.
|
void |
write(java.io.DataOutput out)
Serialize the fields of this object to
out. |
public ListStringSplit(java.util.List<java.util.List<java.lang.String>> data)
public long length()
length in interface InputSplitpublic java.net.URI[] locations()
locations in interface InputSplitpublic java.util.Iterator<java.net.URI> locationsIterator()
locationsIterator in interface InputSplitpublic java.util.Iterator<java.lang.String> locationsPathIterator()
locationsPathIterator in interface InputSplitpublic void reset()
InputSplitreset in interface InputSplitpublic void write(java.io.DataOutput out)
throws java.io.IOException
out.public void readFields(java.io.DataInput in)
throws java.io.IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.java.io.IOExceptionpublic double toDouble()
public float toFloat()
public int toInt()
public long toLong()
public java.util.List<java.util.List<java.lang.String>> getData()