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.Deserializer
org.apache.hadoop.hive.serde2.SerDeException
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector() throws org.apache.hadoop.hive.serde2.SerDeException
getObjectInspector
in interface org.apache.hadoop.hive.serde2.Deserializer
org.apache.hadoop.hive.serde2.SerDeException
public org.apache.hadoop.hive.serde2.SerDeStats getSerDeStats()
getSerDeStats
in interface org.apache.hadoop.hive.serde2.Deserializer
getSerDeStats
in interface org.apache.hadoop.hive.serde2.Serializer
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass
in interface org.apache.hadoop.hive.serde2.Serializer
public 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.Deserializer
initialize
in interface org.apache.hadoop.hive.serde2.Serializer
org.apache.hadoop.hive.serde2.SerDeException
public 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.Serializer
org.apache.hadoop.hive.serde2.SerDeException
Copyright © 2015. All rights reserved.