public abstract class BaseInputFormat extends java.lang.Object implements InputFormat
Constructor and Description |
---|
BaseInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader |
createReader(InputSplit split)
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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createReader
public RecordReader createReader(InputSplit split) throws java.io.IOException, java.lang.InterruptedException
InputFormat
createReader
in interface InputFormat
split
- the split to readjava.io.IOException
java.lang.InterruptedException
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.public void readFields(java.io.DataInput in) throws java.io.IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.java.io.IOException
public double toDouble()
Writable
public float toFloat()
Writable
public int toInt()
Writable