public class HCatRecordSerDe extends AbstractSerDe
configErrors| 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 HiveSerializer.
|
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.
|
getConfigurationErrors, initialize, shouldStoreFieldsInMetastorepublic HCatRecordSerDe()
throws SerDeException
SerDeExceptionpublic void initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconf - System properties. Can be null in compile timetbl - table propertiesSerDeExceptionpublic void initialize(HCatSchema hsch) throws SerDeException
SerDeExceptionpublic Object deserialize(org.apache.hadoop.io.Writable data) throws SerDeException
deserialize in interface Deserializerdeserialize in class AbstractSerDedata - The Writable object containing a serialized objectSerDeExceptionpublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic static Object serializeField(Object field, ObjectInspector fieldObjectInspector) throws SerDeException
SerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic SerDeStats getSerDeStats()
AbstractSerDegetSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class AbstractSerDeCopyright © 2019 The Apache Software Foundation. All Rights Reserved.