public class OrcSerde extends Object implements SerDe, VectorizedSerde
Constructor and Description |
---|
OrcSerde() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(org.apache.hadoop.io.Writable writable)
Deserialize an object out of a Writable blob.
|
void |
deserializeVector(Object rowBlob,
int rowsInBatch,
VectorizedRowBatch reuseBatch) |
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal
structure of the Object returned from deserialize(...).
|
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()
Returns the Writable class that would be returned by the serialize method.
|
void |
initialize(org.apache.hadoop.conf.Configuration conf,
Properties table)
Initialize the HiveDeserializer.
|
org.apache.hadoop.io.Writable |
serialize(Object realRow,
ObjectInspector inspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
org.apache.hadoop.io.Writable |
serializeVector(VectorizedRowBatch vrg,
ObjectInspector objInspector) |
public void initialize(org.apache.hadoop.conf.Configuration conf, Properties table)
Deserializer
initialize
in interface Deserializer
initialize
in interface Serializer
conf
- System propertiestable
- table propertiespublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
Serializer
getSerializedClass
in interface Serializer
public org.apache.hadoop.io.Writable serialize(Object realRow, ObjectInspector inspector)
Serializer
serialize
in interface Serializer
public Object deserialize(org.apache.hadoop.io.Writable writable) throws SerDeException
Deserializer
deserialize
in interface Deserializer
writable
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector() throws SerDeException
Deserializer
getObjectInspector
in interface Deserializer
SerDeException
public SerDeStats getSerDeStats()
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
public org.apache.hadoop.io.Writable serializeVector(VectorizedRowBatch vrg, ObjectInspector objInspector) throws SerDeException
serializeVector
in interface VectorizedSerde
SerDeException
public void deserializeVector(Object rowBlob, int rowsInBatch, VectorizedRowBatch reuseBatch) throws SerDeException
deserializeVector
in interface VectorizedSerde
SerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.