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 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.
|
configErrors
Constructor and Description |
---|
DynamicSerDe() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(org.apache.hadoop.io.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
|
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveSerializer.
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
getConfigurationErrors, initialize
public static final org.apache.commons.logging.Log LOG
public static final 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(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
job
- System properties. Can be null in compile timetbl
- table propertiesSerDeException
public Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
field
- The Writable object containing a serialized objectSerDeException
public static ObjectInspector dynamicSerDeStructBaseToObjectInspector(DynamicSerDeTypeBase bt) throws SerDeException
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDe
getObjectInspector
in interface Deserializer
getObjectInspector
in class AbstractSerDe
SerDeException
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class AbstractSerDe
public org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
AbstractSerDe
serialize
in interface Serializer
serialize
in class AbstractSerDe
SerDeException
public SerDeStats getSerDeStats()
AbstractSerDe
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
getSerDeStats
in class AbstractSerDe
Copyright © 2017 The Apache Software Foundation. All rights reserved.