|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
public class ColumnarSerDe
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
|
| Constructor Summary | |
|---|---|
ColumnarSerDe()
|
|
| Method Summary | |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize a row from the Writable to a LazyObject. |
ObjectInspector |
getObjectInspector()
Returns the ObjectInspector for the row. |
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable Class after serialization. |
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the SerDe given the parameters. |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize a row of data. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public ColumnarSerDe()
throws SerDeException
SerDeException| Method Detail |
|---|
public String toString()
toString in class Object
public void initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
throws SerDeException
initialize in interface Deserializerinitialize in interface Serializerjob - System propertiestbl - table properties
SerDeExceptionDeserializer.initialize(Configuration, Properties)
public Object deserialize(org.apache.hadoop.io.Writable blob)
throws SerDeException
deserialize in interface Deserializerblob - The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector()
throws SerDeException
getObjectInspector in interface DeserializerSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass in interface SerializerSerializer.getSerializedClass()
public org.apache.hadoop.io.Writable serialize(Object obj,
ObjectInspector objInspector)
throws SerDeException
serialize in interface Serializerobj - The row objectobjInspector - The ObjectInspector for the row object
SerDeExceptionSerializer.serialize(Object, ObjectInspector)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||