deserialize
public Object deserialize(org.apache.hadoop.io.Writable field)
throws SerDeException
Deserialize an object out of a Writable blob. In most cases, the return
value of this function will be constant since the function will reuse the
returned object. If the client wants to keep a copy of the object, the
client needs to clone the returned value by calling
ObjectInspectorUtils.getStandardObject().
- Specified by:
deserialize
in interface Deserializer
- Overrides:
deserialize
in class TypedSerDe
- Parameters:
field
- The Writable object containing a serialized object
- Returns:
- A Java object representing the contents in the blob.
- Throws:
SerDeException