|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.AbstractSerDe
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
public class LazyBinarySerDe
The LazyBinarySerDe class combines the lazy property of LazySimpleSerDe class and the binary property of BinarySortable class. Lazy means a field is not deserialized until required. Binary means a field is serialized in binary compact format.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
LazyBinarySerDe()
|
|
| Method Summary | |
|---|---|
Object |
deserialize(Writable field)
Deserialize a table record to a lazybinary struct. |
ObjectInspector |
getObjectInspector()
Returns the ObjectInspector for the row. |
SerDeStats |
getSerDeStats()
Returns the statistics after (de)serialization) |
Class<? extends Writable> |
getSerializedClass()
Returns the Writable Class after serialization. |
void |
initialize(Configuration conf,
Properties tbl)
Initialize the SerDe with configuration and table information. |
static boolean |
serialize(ByteStream.Output byteStream,
Object obj,
ObjectInspector objInspector,
boolean skipLengthPrefix,
boolean warnedOnceNullMapKey)
A recursive function that serialize an object to a byte buffer based on its object inspector. |
Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object to a byte buffer in a binary compact way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public LazyBinarySerDe()
throws SerDeException
SerDeException| Method Detail |
|---|
public void initialize(Configuration conf,
Properties tbl)
throws SerDeException
initialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconf - System propertiestbl - table properties
SerDeException
public ObjectInspector getObjectInspector()
throws SerDeException
getObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic Class<? extends Writable> getSerializedClass()
getSerializedClass in interface SerializergetSerializedClass in class AbstractSerDe
public Object deserialize(Writable field)
throws SerDeException
deserialize in interface Deserializerdeserialize in class AbstractSerDefield - The Writable object containing a serialized object
SerDeException
public Writable serialize(Object obj,
ObjectInspector objInspector)
throws SerDeException
serialize in interface Serializerserialize in class AbstractSerDeSerDeException
public static boolean serialize(ByteStream.Output byteStream,
Object obj,
ObjectInspector objInspector,
boolean skipLengthPrefix,
boolean warnedOnceNullMapKey)
byteStream - the byte stream storing the serialization dataobj - the object to serializeobjInspector - the object inspectorskipLengthPrefix - a boolean indicating whether length prefix is
needed for list/map/structwarnedOnceNullMapKey - a boolean indicating whether a warning
has been issued once already when encountering null map keys
public SerDeStats getSerDeStats()
getSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class AbstractSerDe
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||