public abstract class AbstractSerDe extends Object implements Deserializer, Serializer
Writable objects.| Modifier and Type | Field and Description |
|---|---|
protected Optional<org.apache.hadoop.conf.Configuration> |
configuration |
protected org.slf4j.Logger |
log |
protected Optional<Properties> |
partitionProperties |
protected Properties |
properties |
protected Properties |
tableProperties |
| Constructor and Description |
|---|
AbstractSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize an object out of a Writable blob.
|
List<String> |
getColumnComments() |
List<String> |
getColumnNames() |
List<TypeInfo> |
getColumnTypes() |
Optional<org.apache.hadoop.conf.Configuration> |
getConfiguration() |
List<String> |
getPartitionColumnComments() |
List<String> |
getPartitionColumnNames() |
List<TypeInfo> |
getPartitionColumnTypes() |
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.
|
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
Initialize the SerDe.
|
protected List<String> |
parseColumnComments(String key) |
protected List<String> |
parseColumnNames() |
protected List<String> |
parseColumnNames(String key) |
protected List<TypeInfo> |
parseColumnTypes() |
protected List<TypeInfo> |
parseColumnTypes(String key) |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
boolean |
shouldStoreFieldsInMetastore(Map<String,String> tableParams) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectInspectorhandleJobLevelConfigurationprotected org.slf4j.Logger log
protected Optional<org.apache.hadoop.conf.Configuration> configuration
protected Properties properties
protected Properties tableProperties
protected Optional<Properties> partitionProperties
public void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
throws SerDeException
configuration - Hadoop configurationtableProperties - Table propertiespartitionProperties - Partition properties (may be null if
table has no partitions)NullPointerException - if tableProperties is nullSerDeException - if SerDe fails to initializepublic abstract Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass in interface Serializerpublic SerDeStats getSerDeStats()
getSerDeStats in interface SerDenull if stats are not supported by
this SerDe. Returns statistics collected when serializingpublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
Serializerserialize in interface SerializerSerDeExceptionpublic Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
Deserializerdeserialize in interface Deserializerblob - The Writable object containing a serialized objectSerDeExceptionpublic boolean shouldStoreFieldsInMetastore(Map<String,String> tableParams)
public Optional<org.apache.hadoop.conf.Configuration> getConfiguration()
Copyright © 2022 The Apache Software Foundation. All rights reserved.