|
||||||||||
| 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.TypedSerDe
public abstract class TypedSerDe
TypedSerDe.
| Field Summary | |
|---|---|
protected Object |
deserializeCache
|
protected Class<?> |
objectClass
|
protected Type |
objectType
|
| Constructor Summary | |
|---|---|
TypedSerDe(Type objectType)
|
|
| Method Summary | |
|---|---|
Object |
deserialize(Writable blob)
Deserialize an object out of a Writable blob. |
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
protected ObjectInspectorFactory.ObjectInspectorOptions |
getObjectInspectorOptions()
|
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 |
|---|
protected Type objectType
protected Class<?> objectClass
protected Object deserializeCache
| Constructor Detail |
|---|
public TypedSerDe(Type objectType)
throws SerDeException
SerDeException| Method Detail |
|---|
public Object deserialize(Writable blob)
throws SerDeException
AbstractSerDe
deserialize in interface Deserializerdeserialize in class AbstractSerDeblob - The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector()
throws SerDeException
AbstractSerDe
getObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionprotected ObjectInspectorFactory.ObjectInspectorOptions getObjectInspectorOptions()
public void initialize(Configuration job,
Properties tbl)
throws SerDeException
AbstractSerDe
initialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDejob - System propertiestbl - table properties
SerDeExceptionpublic 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 | |||||||||