public abstract class AbstractEncodingAwareSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
charset |
configErrors| Constructor and Description |
|---|
AbstractEncodingAwareSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize an object out of a Writable blob.
|
protected abstract Object |
doDeserialize(org.apache.hadoop.io.Writable blob) |
protected abstract org.apache.hadoop.io.Writable |
doSerialize(Object obj,
ObjectInspector objInspector) |
void |
initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
Deprecated.
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
protected abstract org.apache.hadoop.io.Writable |
transformFromUTF8(org.apache.hadoop.io.Writable blob)
transform Writable data from UTF-8 to charset before serialize.
|
protected abstract org.apache.hadoop.io.Writable |
transformToUTF8(org.apache.hadoop.io.Writable blob)
transform Writable data from charset to UTF-8 before doDeserialize.
|
getConfigurationErrors, getObjectInspector, getSerDeStats, getSerializedClass, initialize, shouldStoreFieldsInMetastoreprotected Charset charset
@Deprecated public void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl) throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconf - System properties. Can be null in compile timetbl - table propertiesSerDeExceptionpublic final org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
AbstractSerDeserialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionprotected abstract org.apache.hadoop.io.Writable transformFromUTF8(org.apache.hadoop.io.Writable blob)
blob - protected abstract org.apache.hadoop.io.Writable doSerialize(Object obj, ObjectInspector objInspector) throws SerDeException
SerDeExceptionpublic final Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDeblob - The Writable object containing a serialized objectSerDeExceptionprotected abstract org.apache.hadoop.io.Writable transformToUTF8(org.apache.hadoop.io.Writable blob)
blob - protected abstract Object doDeserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
SerDeExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.