public class AvroSerDe extends AbstractSerDe
| Constructor and Description |
|---|
AvroSerDe() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(Writable writable)
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 configuration,
java.util.Properties properties)
Initialize the HiveSerializer.
|
Writable |
serialize(java.lang.Object o,
ObjectInspector objectInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
public void initialize(Configuration configuration,
java.util.Properties properties)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconfiguration - System propertiesproperties - table propertiesSerDeExceptionpublic java.lang.Class<? extends Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic Writable serialize(java.lang.Object o,
ObjectInspector objectInspector)
throws SerDeException
AbstractSerDeserialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic java.lang.Object deserialize(Writable writable)
throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDewritable - The Writable object containing a serialized objectSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic SerDeStats getSerDeStats()
AbstractSerDegetSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class AbstractSerDeCopyright © 2012 The Apache Software Foundation