|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Serializer
HiveSerializer is used to serialize data to a Hadoop Writable object. The serialize In addition to the interface below, all implementations are assume to have a ctor that takes a single 'Table' object as argument.
Method Summary | |
---|---|
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 conf,
Properties tbl)
Initialize the HiveSerializer. |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the ObjectInspector. |
Method Detail |
---|
void initialize(org.apache.hadoop.conf.Configuration conf, Properties tbl) throws SerDeException
conf
- System propertiestbl
- table properties
SerDeException
Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
SerDeException
SerDeStats getSerDeStats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |