|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(org.apache.hadoop.io.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 org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveDeserializer. |
org.apache.hadoop.io.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(org.apache.hadoop.io.Writable blob) throws SerDeException
Deserializer
deserialize
in interface Deserializer
blob
- The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
Deserializer
getObjectInspector
in interface Deserializer
SerDeException
protected ObjectInspectorFactory.ObjectInspectorOptions getObjectInspectorOptions()
public void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
Deserializer
initialize
in interface Deserializer
initialize
in interface Serializer
job
- System propertiestbl
- table properties
SerDeException
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
Serializer
getSerializedClass
in interface Serializer
public org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
Serializer
serialize
in interface Serializer
SerDeException
public SerDeStats getSerDeStats()
Deserializer
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |