public abstract class TypedSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
deserializeCache |
protected java.lang.Class<?> |
objectClass |
protected java.lang.reflect.Type |
objectType |
| Constructor and Description |
|---|
TypedSerDe(java.lang.reflect.Type objectType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(Writable blob)
Deserialize an object out of a Writable blob.
|
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal
structure of the Object returned from deserialize(...).
|
protected ObjectInspectorFactory.ObjectInspectorOptions |
getObjectInspectorOptions() |
SerDeStats |
getSerDeStats()
Returns statistics collected when serializing
|
java.lang.Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
void |
initialize(Configuration job,
java.util.Properties tbl)
Initialize the HiveSerializer.
|
Writable |
serialize(java.lang.Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
protected java.lang.reflect.Type objectType
protected java.lang.Class<?> objectClass
protected java.lang.Object deserializeCache
public TypedSerDe(java.lang.reflect.Type objectType)
throws SerDeException
SerDeExceptionpublic java.lang.Object deserialize(Writable blob)
throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDeblob - The Writable object containing a serialized objectSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionprotected ObjectInspectorFactory.ObjectInspectorOptions getObjectInspectorOptions()
public void initialize(Configuration job,
java.util.Properties tbl)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDejob - System propertiestbl - table propertiesSerDeExceptionpublic java.lang.Class<? extends Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic Writable serialize(java.lang.Object obj,
ObjectInspector objInspector)
throws SerDeException
AbstractSerDeserialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic SerDeStats getSerDeStats()
AbstractSerDegetSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class AbstractSerDeCopyright © 2012 The Apache Software Foundation