org.apache.hadoop.hive.serde2.columnar
Class LazyBinaryColumnarSerDe

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.columnar.ColumnarSerDeBase
      extended by org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarSerDe
All Implemented Interfaces:
Deserializer, SerDe, Serializer

public class LazyBinaryColumnarSerDe
extends ColumnarSerDeBase

LazyBinaryColumnarSerDe. This serde combines elements of columnar serde and lazybinary serde to produce a serde which serializes columns into a BytesRefArrayWritable in a compact binary format and which is deserialized in a lazy, i.e. on-demand fashion.


Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.columnar.ColumnarSerDeBase
cachedObjectInspector, lastOperationDeserialize, lastOperationSerialize, serializedSize, stats
 
Constructor Summary
LazyBinaryColumnarSerDe()
           
 
Method Summary
 void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl)
          Initialize the HiveDeserializer.
 org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector)
          Serialize an object by navigating inside the Object with the ObjectInspector.
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.columnar.ColumnarSerDeBase
deserialize, getObjectInspector, getSerDeStats, getSerializedClass, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyBinaryColumnarSerDe

public LazyBinaryColumnarSerDe()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

initialize

public void initialize(org.apache.hadoop.conf.Configuration conf,
                       Properties tbl)
                throws SerDeException
Description copied from interface: Deserializer
Initialize the HiveDeserializer.

Parameters:
conf - System properties
tbl - table properties
Throws:
SerDeException

serialize

public org.apache.hadoop.io.Writable serialize(Object obj,
                                               ObjectInspector objInspector)
                                        throws SerDeException
Description copied from interface: Serializer
Serialize an object by navigating inside the Object with the ObjectInspector. In most cases, the return value of this function will be constant since the function will reuse the Writable object. If the client wants to keep a copy of the Writable, the client needs to clone the returned value.

Throws:
SerDeException


Copyright © 2013 The Apache Software Foundation