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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.AbstractSerDe
      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.


Constructor Summary
LazyBinaryColumnarSerDe()
           
 
Method Summary
 void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl)
          Initialize the HiveSerializer.
 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
 
Methods inherited from class java.lang.Object
equals, 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 class: AbstractSerDe
Initialize the HiveSerializer.

Specified by:
initialize in interface Deserializer
Specified by:
initialize in interface Serializer
Specified by:
initialize in class AbstractSerDe
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 class: AbstractSerDe
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.

Specified by:
serialize in interface Serializer
Specified by:
serialize in class AbstractSerDe
Throws:
SerDeException


Copyright © 2014 The Apache Software Foundation. All rights reserved.