org.apache.hadoop.hive.serde2.columnar
Class ColumnarSerDe
java.lang.Object
org.apache.hadoop.hive.serde2.columnar.ColumnarSerDeBase
org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
- All Implemented Interfaces:
- Deserializer, SerDe, Serializer
public class ColumnarSerDe
- extends ColumnarSerDeBase
ColumnarSerDe is used for columnar based storage supported by RCFile.
ColumnarSerDe differentiate from LazySimpleSerDe in:
(1) ColumnarSerDe uses a ColumnarStruct as its lazy Object
(2) ColumnarSerDe initialize ColumnarStruct's field directly. But under the
field level, it works like LazySimpleSerDe
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
LOG
public static final org.apache.commons.logging.Log LOG
ColumnarSerDe
public ColumnarSerDe()
throws SerDeException
- Throws:
SerDeException
toString
public String toString()
- Overrides:
toString
in class Object
initialize
public void initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
throws SerDeException
- Initialize the SerDe given the parameters.
- Parameters:
job
- System propertiestbl
- table properties
- Throws:
SerDeException
- See Also:
Deserializer.initialize(Configuration, Properties)
serialize
public org.apache.hadoop.io.Writable serialize(Object obj,
ObjectInspector objInspector)
throws SerDeException
- Serialize a row of data.
- Parameters:
obj
- The row objectobjInspector
- The ObjectInspector for the row object
- Returns:
- The serialized Writable object
- Throws:
SerDeException
- See Also:
Serializer.serialize(Object, ObjectInspector)
Copyright © 2013 The Apache Software Foundation