public class HCatRecordSerDe extends Object implements SerDe
| Constructor and Description |
|---|
HCatRecordSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable data)
The purpose of a deserialize method is to turn a data blob
which is a writable representation of the data into an
object that can then be parsed using the appropriate
ObjectInspector.
|
ObjectInspector |
getObjectInspector()
Return an object inspector that can read through the object
that we return from deserialize().
|
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 HiveDeserializer.
|
void |
initialize(HCatSchema hsch) |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
The purpose of the serialize method is to turn an object-representation
with a provided ObjectInspector into a Writable format, which
the underlying layer can then use to write out.
|
static Object |
serializeField(Object field,
ObjectInspector fieldObjectInspector)
Return underlying Java Object from an object-representation
that is readable by a provided ObjectInspector.
|
public HCatRecordSerDe()
throws SerDeException
SerDeExceptionpublic void initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
throws SerDeException
Deserializerinitialize in interface Deserializerinitialize in interface Serializerconf - System propertiestbl - table propertiesSerDeExceptionpublic void initialize(HCatSchema hsch) throws SerDeException
SerDeExceptionpublic Object deserialize(org.apache.hadoop.io.Writable data) throws SerDeException
deserialize in interface Deserializerdata - The Writable object containing a serialized objectSerDeExceptionpublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize in interface SerializerSerDeExceptionpublic static Object serializeField(Object field, ObjectInspector fieldObjectInspector) throws SerDeException
SerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector in interface DeserializerSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
SerializergetSerializedClass in interface Serializerpublic SerDeStats getSerDeStats()
DeserializergetSerDeStats in interface DeserializergetSerDeStats in interface SerializerCopyright © 2017 The Apache Software Foundation. All rights reserved.