public class OrcSerde extends VectorizedSerde
Modifier and Type | Field and Description |
---|---|
static String |
COMPRESSION |
configErrors
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,
org.apache.hadoop.hive.ql.exec.vector.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 HiveSerializer.
|
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(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch vrg,
ObjectInspector objInspector) |
getConfigurationErrors, initialize, shouldStoreFieldsInMetastore
public static final String COMPRESSION
public void initialize(org.apache.hadoop.conf.Configuration conf, Properties table)
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
conf
- System properties. Can be null in compile timetable
- table propertiespublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class AbstractSerDe
public org.apache.hadoop.io.Writable serialize(Object realRow, ObjectInspector inspector)
AbstractSerDe
serialize
in interface Serializer
serialize
in class AbstractSerDe
public Object deserialize(org.apache.hadoop.io.Writable writable) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
writable
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDe
getObjectInspector
in interface Deserializer
getObjectInspector
in class AbstractSerDe
SerDeException
public SerDeStats getSerDeStats()
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
getSerDeStats
in class AbstractSerDe
public org.apache.hadoop.io.Writable serializeVector(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch vrg, ObjectInspector objInspector) throws SerDeException
serializeVector
in class VectorizedSerde
SerDeException
public void deserializeVector(Object rowBlob, int rowsInBatch, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch reuseBatch) throws SerDeException
deserializeVector
in class VectorizedSerde
SerDeException
Copyright © 2022 The Apache Software Foundation. All rights reserved.