org.apache.hadoop.hive.ql.io.orc
Class OrcSerde
java.lang.Object
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.
OrcSerde
public OrcSerde()
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.