The interface is used for the custom mapping of
to a byte array. The byte array is fed to the stdin
of the streaming process.
- a byte array, received from the stdout of the streaming process,
This interface is designed to provide a common protocol for data exchange
between Pig runtime and streaming executables.
Typically, a user implements this interface for a particular type of stream
command and specifies the implementation class in the Pig DEFINE statement.
Given a tuple, produce an array of bytes to be passed to the streaming
t Tuple to serialize
- Serialized form of the tuple
Given a byte array from a streaming executable, produce a tuple.
bytes bytes to deserialize.
offset the offset in the byte array from which to deserialize.
length the number of bytes from the offset of the byte array to deserialize.
- Data as a Pig Tuple.
This will be called on the front end during planning and not on the back
end during execution.
associated with this object, or null if
there is no such LoadCaster.
java.io.IOException if there is an exception during LoadCaster