public class DocumentDBSerDe extends Object implements org.apache.hadoop.hive.serde2.SerDe
| Constructor and Description |
|---|
DocumentDBSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable writable)
Returns a JSONObject instance by deserializing a DocumentDBWritable.
|
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector()
Returns JsonSerde object inspector.
|
org.apache.hadoop.hive.serde2.SerDeStats |
getSerDeStats()
Returns JsonSerde stats.
|
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the class name to serialize to which is DocumentDBWritable.
|
void |
initialize(org.apache.hadoop.conf.Configuration conf,
Properties properties)
Calls JsonSerde.initialize
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector objInspector)
Serializes a JsonObject to a DocumentDWritable.
|
public Object deserialize(org.apache.hadoop.io.Writable writable) throws org.apache.hadoop.hive.serde2.SerDeException
deserialize in interface org.apache.hadoop.hive.serde2.Deserializerorg.apache.hadoop.hive.serde2.SerDeExceptionpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector()
throws org.apache.hadoop.hive.serde2.SerDeException
getObjectInspector in interface org.apache.hadoop.hive.serde2.Deserializerorg.apache.hadoop.hive.serde2.SerDeExceptionpublic org.apache.hadoop.hive.serde2.SerDeStats getSerDeStats()
getSerDeStats in interface org.apache.hadoop.hive.serde2.DeserializergetSerDeStats in interface org.apache.hadoop.hive.serde2.Serializerpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass in interface org.apache.hadoop.hive.serde2.Serializerpublic void initialize(org.apache.hadoop.conf.Configuration conf,
Properties properties)
throws org.apache.hadoop.hive.serde2.SerDeException
initialize in interface org.apache.hadoop.hive.serde2.Deserializerinitialize in interface org.apache.hadoop.hive.serde2.Serializerorg.apache.hadoop.hive.serde2.SerDeExceptionpublic org.apache.hadoop.io.Writable serialize(Object obj, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector objInspector) throws org.apache.hadoop.hive.serde2.SerDeException
serialize in interface org.apache.hadoop.hive.serde2.Serializerorg.apache.hadoop.hive.serde2.SerDeExceptionCopyright © 2015. All rights reserved.