public class ListStringInputFormat extends java.lang.Object implements InputFormat
| Constructor and Description |
|---|
ListStringInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
RecordReader |
createReader(InputSplit split)
Creates a reader from an input split
|
RecordReader |
createReader(InputSplit split,
Configuration conf)
Creates a reader from an input split
|
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from
in. |
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 RecordReader createReader(InputSplit split, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
createReader in interface InputFormatsplit - the split to readconf - java.io.IOExceptionjava.lang.InterruptedExceptionpublic RecordReader createReader(InputSplit split) throws java.io.IOException, java.lang.InterruptedException
createReader in interface InputFormatsplit - the split to readjava.io.IOExceptionjava.lang.InterruptedExceptionpublic 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()