public abstract class ProtobufSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends com.google.protobuf.Message> |
protoMessageClass |
configuration, log, partitionProperties, properties, tableProperties| Constructor and Description |
|---|
ProtobufSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob) |
ObjectInspector |
getObjectInspector() |
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties) |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector) |
protected abstract com.google.protobuf.Message |
toMessage(org.apache.hadoop.io.Writable writable)
Convert the given writable to a message.
|
getColumnComments, getColumnNames, getColumnTypes, getConfiguration, getPartitionColumnComments, getPartitionColumnNames, getPartitionColumnTypes, getSerDeStats, getSerializedClass, parseColumnComments, parseColumnNames, parseColumnNames, parseColumnTypes, parseColumnTypes, shouldStoreFieldsInMetastore, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleJobLevelConfigurationprotected Class<? extends com.google.protobuf.Message> protoMessageClass
public void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
throws SerDeException
initialize in class AbstractSerDeSerDeExceptionpublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
deserialize in interface Deserializerdeserialize in class AbstractSerDeSerDeExceptionprotected abstract com.google.protobuf.Message toMessage(org.apache.hadoop.io.Writable writable)
throws SerDeException
writable - The writable object containing the message.SerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
SerDeExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.