|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.AbstractSerializer
public abstract class AbstractSerializer
Abstract class for implementing Serializer. The abstract class has been created, so that new methods can be added in the underlying interface, Serializer, and only implementations that need those methods overwrite it.
Constructor Summary | |
---|---|
AbstractSerializer()
|
Method Summary | |
---|---|
abstract SerDeStats |
getSerDeStats()
Returns statistics collected when serializing |
abstract Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
abstract void |
initialize(Configuration conf,
Properties tbl)
Initialize the HiveSerializer. |
abstract 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 |
Constructor Detail |
---|
public AbstractSerializer()
Method Detail |
---|
public abstract void initialize(Configuration conf, Properties tbl) throws SerDeException
initialize
in interface Serializer
conf
- System propertiestbl
- table properties
SerDeException
public abstract Class<? extends Writable> getSerializedClass()
getSerializedClass
in interface Serializer
public abstract Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize
in interface Serializer
SerDeException
public abstract SerDeStats getSerDeStats()
getSerDeStats
in interface Serializer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |