|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.AbstractSerDe
public abstract class AbstractSerDe
Abstract class for implementing SerDe. The abstract class has been created, so that new methods can be added in the underlying interface, SerDe, and only implementations that need those methods overwrite it.
Constructor Summary | |
---|---|
AbstractSerDe()
|
Method Summary | |
---|---|
abstract Object |
deserialize(org.apache.hadoop.io.Writable blob)
Deserialize an object out of a Writable blob. |
abstract ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
abstract SerDeStats |
getSerDeStats()
Returns statistics collected when serializing |
abstract Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
abstract void |
initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
Initialize the HiveSerializer. |
abstract 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSerDe()
Method Detail |
---|
public abstract void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl) throws SerDeException
initialize
in interface Deserializer
initialize
in interface Serializer
conf
- System propertiestbl
- table properties
SerDeException
public abstract Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass
in interface Serializer
public abstract org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize
in interface Serializer
SerDeException
public abstract SerDeStats getSerDeStats()
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
public abstract Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
deserialize
in interface Deserializer
blob
- The Writable object containing a serialized object
SerDeException
public abstract ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector
in interface Deserializer
SerDeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |