public class DynamicSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
protected ByteStream.Input |
bis_ |
protected ByteStream.Output |
bos_ |
protected org.apache.thrift.protocol.TProtocol |
iprot_ |
static org.apache.commons.logging.Log |
LOG |
static java.lang.String |
META_TABLE_NAME |
protected org.apache.thrift.protocol.TProtocol |
oprot_
protocols are protected in case any of their properties need to be queried
from another class in this package.
|
| Constructor and Description |
|---|
DynamicSerDe() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(Writable field)
Deserialize an object out of a Writable blob.
|
static ObjectInspector |
dynamicSerDeStructBaseToObjectInspector(DynamicSerDeTypeBase bt) |
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 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.
|
public static final org.apache.commons.logging.Log LOG
public static final java.lang.String META_TABLE_NAME
protected transient ByteStream.Input bis_
protected transient ByteStream.Output bos_
protected transient org.apache.thrift.protocol.TProtocol oprot_
protected transient org.apache.thrift.protocol.TProtocol iprot_
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.Object deserialize(Writable field)
throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDefield - The Writable object containing a serialized objectSerDeExceptionpublic static ObjectInspector dynamicSerDeStructBaseToObjectInspector(DynamicSerDeTypeBase bt) throws SerDeException
SerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic 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