|
||||||||||
| 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.dynamic_type.DynamicSerDe
public class DynamicSerDe
DynamicSerDe.
| Field Summary | |
|---|---|
protected ByteStream.Input |
bis_
|
protected ByteStream.Output |
bos_
|
protected org.apache.thrift.protocol.TProtocol |
iprot_
|
static org.apache.commons.logging.Log |
LOG
|
static String |
META_TABLE_NAME
|
protected org.apache.thrift.protocol.TProtocol |
oprot_
protocols are protected in case any of their properties need to be queried from another class in this package. |
| Constructor Summary | |
|---|---|
DynamicSerDe()
|
|
| Method Summary | |
|---|---|
Object |
deserialize(Writable field)
Deserialize an object out of a Writable blob. |
static ObjectInspector |
dynamicSerDeStructBaseToObjectInspector(DynamicSerDeTypeBase bt)
|
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
SerDeStats |
getSerDeStats()
Returns statistics collected when serializing |
Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
void |
initialize(Configuration job,
Properties tbl)
Initialize the HiveSerializer. |
Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the ObjectInspector. |
| 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
public static final String META_TABLE_NAME
protected transient ByteStream.Input bis_
protected transient ByteStream.Output bos_
protected transient org.apache.thrift.protocol.TProtocol oprot_
protected transient org.apache.thrift.protocol.TProtocol iprot_
| Constructor Detail |
|---|
public DynamicSerDe()
| Method Detail |
|---|
public void initialize(Configuration job,
Properties tbl)
throws SerDeException
AbstractSerDe
initialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDejob - System propertiestbl - table properties
SerDeException
public Object deserialize(Writable field)
throws SerDeException
AbstractSerDe
deserialize in interface Deserializerdeserialize in class AbstractSerDefield - The Writable object containing a serialized object
SerDeException
public static ObjectInspector dynamicSerDeStructBaseToObjectInspector(DynamicSerDeTypeBase bt)
throws SerDeException
SerDeException
public ObjectInspector getObjectInspector()
throws SerDeException
AbstractSerDe
getObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic Class<? extends Writable> getSerializedClass()
AbstractSerDe
getSerializedClass in interface SerializergetSerializedClass in class AbstractSerDe
public Writable serialize(Object obj,
ObjectInspector objInspector)
throws SerDeException
AbstractSerDe
serialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic SerDeStats getSerDeStats()
AbstractSerDe
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 | |||||||||