public class VectorizedColumnarSerDe extends ColumnarSerDe implements VectorizedSerde
LOG, serdeParams
cachedObjectInspector, lastOperationDeserialize, lastOperationSerialize, serializedSize, stats
configErrors
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, toString
initialize
getConfigurationErrors, initialize
public VectorizedColumnarSerDe() throws SerDeException
SerDeException
public org.apache.hadoop.io.Writable serializeVector(VectorizedRowBatch vrg, ObjectInspector objInspector) throws SerDeException
serializeVector
in interface VectorizedSerde
vrg
- Vectorized row batch to serializeobjInspector
- The ObjectInspector for the row objectSerDeException
Serializer.serialize(Object, ObjectInspector)
public SerDeStats getSerDeStats()
AbstractSerDe
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
getSerDeStats
in class ColumnarSerDeBase
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class ColumnarSerDeBase
public Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class ColumnarSerDeBase
blob
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDe
getObjectInspector
in interface Deserializer
getObjectInspector
in class ColumnarSerDeBase
SerDeException
public org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
ColumnarSerDe
serialize
in interface Serializer
serialize
in class ColumnarSerDe
obj
- The row objectobjInspector
- The ObjectInspector for the row objectSerDeException
SerDe#serialize(Object, ObjectInspector)
public void deserializeVector(Object rowBlob, int rowsInBlob, VectorizedRowBatch reuseBatch) throws SerDeException
deserializeVector
in interface VectorizedSerde
rowBlob
- rowBlob row batch to deserializerowsInBlob
- Total number of rows in rowBlob to deserializereuseBatch
- VectorizedRowBatch to which the rows should be serialized *SerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.