org.apache.hadoop.hive.serde2.thrift
Class ThriftDeserializer

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.AbstractDeserializer
      extended by org.apache.hadoop.hive.serde2.thrift.ThriftDeserializer
All Implemented Interfaces:
Deserializer

public class ThriftDeserializer
extends AbstractDeserializer

ThriftDeserializer.


Constructor Summary
ThriftDeserializer()
           
 
Method Summary
 Object deserialize(org.apache.hadoop.io.Writable field)
          Deserialize an object out of a Writable blob.
 ObjectInspector getObjectInspector()
          Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...).
 SerDeStats getSerDeStats()
          Returns statistics collected when serializing
 void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl)
          Initialize the HiveDeserializer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftDeserializer

public ThriftDeserializer()
Method Detail

initialize

public void initialize(org.apache.hadoop.conf.Configuration job,
                       Properties tbl)
                throws SerDeException
Description copied from class: AbstractDeserializer
Initialize the HiveDeserializer.

Specified by:
initialize in interface Deserializer
Specified by:
initialize in class AbstractDeserializer
Parameters:
job - System properties
tbl - table properties
Throws:
SerDeException

deserialize

public Object deserialize(org.apache.hadoop.io.Writable field)
                   throws SerDeException
Description copied from class: AbstractDeserializer
Deserialize an object out of a Writable blob. In most cases, the return value of this function will be constant since the function will reuse the returned object. If the client wants to keep a copy of the object, the client needs to clone the returned value by calling ObjectInspectorUtils.getStandardObject().

Specified by:
deserialize in interface Deserializer
Specified by:
deserialize in class AbstractDeserializer
Parameters:
field - The Writable object containing a serialized object
Returns:
A Java object representing the contents in the blob.
Throws:
SerDeException

getObjectInspector

public ObjectInspector getObjectInspector()
                                   throws SerDeException
Description copied from class: AbstractDeserializer
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...).

Specified by:
getObjectInspector in interface Deserializer
Specified by:
getObjectInspector in class AbstractDeserializer
Throws:
SerDeException

getSerDeStats

public SerDeStats getSerDeStats()
Description copied from class: AbstractDeserializer
Returns statistics collected when serializing

Specified by:
getSerDeStats in interface Deserializer
Specified by:
getSerDeStats in class AbstractDeserializer


Copyright © 2014 The Apache Software Foundation. All rights reserved.