public class VectorizedColumnarSerDe extends ColumnarSerDe implements VectorizedSerde
LOG, serdeParamscachedObjectInspector, lastOperationDeserialize, lastOperationSerialize, serializedSize, statsconfigErrors| Constructor and Description |
|---|
VectorizedColumnarSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize an object out of a Writable blob.
|
void |
deserializeVector(Object rowBlob,
int rowsInBlob,
VectorizedRowBatch reuseBatch)
Deserializes the rowBlob into Vectorized row batch
|
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
|
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize a row of data.
|
org.apache.hadoop.io.Writable |
serializeVector(VectorizedRowBatch vrg,
ObjectInspector objInspector)
Serialize a vectorized row batch
|
initialize, toStringinitializegetConfigurationErrors, initializepublic VectorizedColumnarSerDe()
throws SerDeException
SerDeExceptionpublic org.apache.hadoop.io.Writable serializeVector(VectorizedRowBatch vrg, ObjectInspector objInspector) throws SerDeException
serializeVector in interface VectorizedSerdevrg - Vectorized row batch to serializeobjInspector - The ObjectInspector for the row objectSerDeExceptionSerializer.serialize(Object, ObjectInspector)public SerDeStats getSerDeStats()
AbstractSerDegetSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class ColumnarSerDeBasepublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class ColumnarSerDeBasepublic Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class ColumnarSerDeBaseblob - The Writable object containing a serialized objectSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class ColumnarSerDeBaseSerDeExceptionpublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
ColumnarSerDeserialize in interface Serializerserialize in class ColumnarSerDeobj - The row objectobjInspector - The ObjectInspector for the row objectSerDeExceptionSerDe#serialize(Object, ObjectInspector)public void deserializeVector(Object rowBlob, int rowsInBlob, VectorizedRowBatch reuseBatch) throws SerDeException
deserializeVector in interface VectorizedSerderowBlob - rowBlob row batch to deserializerowsInBlob - Total number of rows in rowBlob to deserializereuseBatch - VectorizedRowBatch to which the rows should be serialized *SerDeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.