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
protected Charset charset
@Deprecated public void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
conf
- System properties. Can be null in compile timetbl
- table propertiesSerDeException
public final org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
AbstractSerDe
serialize
in interface Serializer
serialize
in class AbstractSerDe
SerDeException
protected 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
SerDeException
public final Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
blob
- The Writable object containing a serialized objectSerDeException
protected 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
SerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.