org.apache.hadoop.hive.serde2
Class ByteStreamTypedSerDe
java.lang.Object
org.apache.hadoop.hive.serde2.TypedSerDe
org.apache.hadoop.hive.serde2.ByteStreamTypedSerDe
- All Implemented Interfaces:
- Deserializer, SerDe, Serializer
- Direct Known Subclasses:
- ThriftByteStreamTypedSerDe
public abstract class ByteStreamTypedSerDe
- extends TypedSerDe
ByteStreamTypedSerDe.
Method Summary |
Object |
deserialize(org.apache.hadoop.io.Writable field)
Deserialize an object out of a Writable blob. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bis
protected ByteStream.Input bis
bos
protected ByteStream.Output bos
ByteStreamTypedSerDe
public ByteStreamTypedSerDe(Type objectType)
throws SerDeException
- Throws:
SerDeException
deserialize
public Object deserialize(org.apache.hadoop.io.Writable field)
throws SerDeException
- Description copied from interface:
Deserializer
- 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
Copyright © 2010 The Apache Software Foundation