org.apache.hadoop.hive.ql.io.orc
Class OrcSerde

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.orc.OrcSerde
All Implemented Interfaces:
VectorizedSerde, Deserializer, SerDe, Serializer
Direct Known Subclasses:
VectorizedOrcSerde

public class OrcSerde
extends Object
implements SerDe, VectorizedSerde

A serde class for ORC. It transparently passes the object to/from the ORC file reader/writer.


Constructor Summary
OrcSerde()
           
 
Method Summary
 Object deserialize(org.apache.hadoop.io.Writable writable)
           
 void deserializeVector(Object rowBlob, int rowsInBatch, VectorizedRowBatch reuseBatch)
           
 ObjectInspector getObjectInspector()
           
 SerDeStats getSerDeStats()
          Always returns null, since serialized size doesn't make sense in the context of ORC files.
 Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
           
 void initialize(org.apache.hadoop.conf.Configuration conf, Properties table)
           
 org.apache.hadoop.io.Writable serialize(Object realRow, ObjectInspector inspector)
           
 org.apache.hadoop.io.Writable serializeVector(VectorizedRowBatch vrg, ObjectInspector objInspector)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrcSerde

public OrcSerde()
Method Detail

initialize

public void initialize(org.apache.hadoop.conf.Configuration conf,
                       Properties table)
Specified by:
initialize in interface Deserializer
Specified by:
initialize in interface Serializer

getSerializedClass

public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
Specified by:
getSerializedClass in interface Serializer

serialize

public org.apache.hadoop.io.Writable serialize(Object realRow,
                                               ObjectInspector inspector)
Specified by:
serialize in interface Serializer

deserialize

public Object deserialize(org.apache.hadoop.io.Writable writable)
                   throws SerDeException
Specified by:
deserialize in interface Deserializer
Throws:
SerDeException

getObjectInspector

public ObjectInspector getObjectInspector()
                                   throws SerDeException
Specified by:
getObjectInspector in interface Deserializer
Throws:
SerDeException

getSerDeStats

public SerDeStats getSerDeStats()
Always returns null, since serialized size doesn't make sense in the context of ORC files.

Specified by:
getSerDeStats in interface Deserializer
Specified by:
getSerDeStats in interface Serializer
Returns:
null

serializeVector

public org.apache.hadoop.io.Writable serializeVector(VectorizedRowBatch vrg,
                                                     ObjectInspector objInspector)
                                              throws SerDeException
Specified by:
serializeVector in interface VectorizedSerde
Throws:
SerDeException

deserializeVector

public void deserializeVector(Object rowBlob,
                              int rowsInBatch,
                              VectorizedRowBatch reuseBatch)
                       throws SerDeException
Specified by:
deserializeVector in interface VectorizedSerde
Throws:
SerDeException


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