public class CustomSerDe2 extends AbstractSerDe
| Constructor and Description |
|---|
CustomSerDe2() |
| 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(...).
|
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 conf,
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.
|
public void initialize(Configuration conf,
java.util.Properties tbl)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconf - System propertiestbl - table propertiesSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic java.lang.Class<? extends Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic java.lang.Object deserialize(Writable blob)
throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDeblob - The Writable object containing a serialized objectSerDeExceptionpublic 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