public class DataInputToObjectCollectorSerializable extends Object implements DataInputToObjectCollector
Serializable
from DataInput
and emits the resulting object.
The input must carry an int-typed number of bytes followed by the serialized object.
Constructor and Description |
---|
DataInputToObjectCollectorSerializable() |
Modifier and Type | Method and Description |
---|---|
void |
collect(DataInputToObjectCollectorContext context)
Reads provided
DataInput and emits an object using the provided emitter. |
public DataInputToObjectCollectorSerializable()
public void collect(DataInputToObjectCollectorContext context) throws IOException
DataInputToObjectCollector
DataInput
and emits an object using the provided emitter.collect
in interface DataInputToObjectCollector
context
- contains input and emitterIOException
- when the read operation cannot be completed