org.apache.hadoop.hive.serde2.columnar
Class LazyBinaryColumnarSerDe
java.lang.Object
org.apache.hadoop.hive.serde2.AbstractSerDe
org.apache.hadoop.hive.serde2.columnar.ColumnarSerDeBase
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.
LazyBinaryColumnarSerDe
public LazyBinaryColumnarSerDe()
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 propertiestbl
- 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.