public class ThriftByteStreamTypedSerDe extends ByteStreamTypedSerDe
Modifier and Type | Field and Description |
---|---|
protected org.apache.thrift.protocol.TProtocol |
inProtocol |
protected org.apache.thrift.transport.TIOStreamTransport |
inTransport |
protected org.apache.thrift.protocol.TProtocol |
outProtocol |
protected org.apache.thrift.transport.TIOStreamTransport |
outTransport |
bis, bos
deserializeCache, objectClass, objectType
configErrors
Constructor and Description |
---|
ThriftByteStreamTypedSerDe(Type objectType,
org.apache.thrift.protocol.TProtocolFactory inFactory,
org.apache.thrift.protocol.TProtocolFactory outFactory) |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(org.apache.hadoop.io.Writable field)
Deserialize an object out of a Writable blob.
|
protected ObjectInspectorFactory.ObjectInspectorOptions |
getObjectInspectorOptions() |
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveSerializer.
|
getObjectInspector, getSerDeStats, getSerializedClass, serialize
getConfigurationErrors, initialize
protected org.apache.thrift.transport.TIOStreamTransport outTransport
protected org.apache.thrift.transport.TIOStreamTransport inTransport
protected org.apache.thrift.protocol.TProtocol outProtocol
protected org.apache.thrift.protocol.TProtocol inProtocol
public ThriftByteStreamTypedSerDe(Type objectType, org.apache.thrift.protocol.TProtocolFactory inFactory, org.apache.thrift.protocol.TProtocolFactory outFactory) throws SerDeException
SerDeException
public void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class TypedSerDe
job
- System properties. Can be null in compile timetbl
- table propertiesSerDeException
protected ObjectInspectorFactory.ObjectInspectorOptions getObjectInspectorOptions()
getObjectInspectorOptions
in class TypedSerDe
public Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class ByteStreamTypedSerDe
field
- The Writable object containing a serialized objectSerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.