public abstract class AbstractSerDe extends java.lang.Object implements SerDe
| Constructor and Description |
|---|
AbstractSerDe() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
deserialize(Writable blob)
Deserialize an object out of a Writable blob.
|
abstract ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal
structure of the Object returned from deserialize(...).
|
abstract SerDeStats |
getSerDeStats()
Returns statistics collected when serializing
|
abstract java.lang.Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
abstract void |
initialize(Configuration conf,
java.util.Properties tbl)
Initialize the HiveSerializer.
|
abstract Writable |
serialize(java.lang.Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
public abstract void initialize(Configuration conf,
java.util.Properties tbl)
throws SerDeException
initialize in interface Deserializerinitialize in interface Serializerconf - System propertiestbl - table propertiesSerDeExceptionpublic abstract java.lang.Class<? extends Writable> getSerializedClass()
getSerializedClass in interface Serializerpublic abstract Writable serialize(java.lang.Object obj,
ObjectInspector objInspector)
throws SerDeException
serialize in interface SerializerSerDeExceptionpublic abstract SerDeStats getSerDeStats()
getSerDeStats in interface DeserializergetSerDeStats in interface Serializerpublic abstract java.lang.Object deserialize(Writable blob)
throws SerDeException
deserialize in interface Deserializerblob - The Writable object containing a serialized objectSerDeExceptionpublic abstract ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector in interface DeserializerSerDeExceptionCopyright © 2012 The Apache Software Foundation