public abstract class AbstractSerDe extends Object implements SerDe
| Modifier and Type | Field and Description |
|---|---|
protected String |
configErrors |
| Constructor and Description |
|---|
AbstractSerDe() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize an object out of a Writable blob.
|
String |
getConfigurationErrors()
Get the error messages during the Serde configuration
|
abstract ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal
structure of the Object returned from deserialize(...).
|
abstract SerDeStats |
getSerDeStats()
Returns statistics collected when serializing
|
abstract Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
abstract void |
initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
Deprecated.
|
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
Initialize the SerDe.
|
abstract org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
protected String configErrors
public void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
throws SerDeException
configuration - Hadoop configurationtableProperties - Table propertiespartitionProperties - Partition propertiesSerDeException@Deprecated public abstract void initialize(@Nullable org.apache.hadoop.conf.Configuration conf, Properties tbl) throws SerDeException
initialize in interface Deserializerinitialize in interface Serializerconf - System properties. Can be null in compile timetbl - table propertiesSerDeExceptionpublic abstract Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass in interface Serializerpublic abstract org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize in interface SerializerSerDeExceptionpublic abstract SerDeStats getSerDeStats()
getSerDeStats in interface DeserializergetSerDeStats in interface Serializerpublic abstract Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
deserialize in interface Deserializerblob - The Writable object containing a serialized objectSerDeExceptionpublic abstract ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector in interface DeserializerSerDeExceptionpublic String getConfigurationErrors()
Copyright © 2017 The Apache Software Foundation. All rights reserved.