JsonSerDe
insteadpublic class JsonSerDe extends java.lang.Object implements SerDe
Constructor and Description |
---|
JsonSerDe()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(Writable blob)
Deprecated.
Takes JSON string in Text form, and has to return an object representation above
it that's readable by the corresponding object inspector.
|
java.lang.String |
getHiveInternalColumnName(int fpos)
Deprecated.
|
ObjectInspector |
getObjectInspector()
Deprecated.
Returns an object inspector for the specified schema that
is capable of reading in the object representation of the JSON string
|
int |
getPositionFromHiveInternalColumnName(java.lang.String internalName)
Deprecated.
|
SerDeStats |
getSerDeStats()
Deprecated.
Returns statistics collected when serializing
|
java.lang.Class<? extends Writable> |
getSerializedClass()
Deprecated.
Returns the Writable class that would be returned by the serialize method.
|
void |
initialize(Configuration conf,
java.util.Properties tbl)
Deprecated.
Initialize the HiveDeserializer.
|
Writable |
serialize(java.lang.Object obj,
ObjectInspector objInspector)
Deprecated.
Given an object and object inspector pair, traverse the object
and generate a Text representation of the object.
|
public void initialize(Configuration conf, java.util.Properties tbl) throws SerDeException
Deserializer
initialize
in interface Deserializer
initialize
in interface Serializer
conf
- System propertiestbl
- table propertiesSerDeException
public java.lang.Object deserialize(Writable blob) throws SerDeException
deserialize
in interface Deserializer
blob
- The Writable object containing a serialized objectSerDeException
public java.lang.String getHiveInternalColumnName(int fpos)
public int getPositionFromHiveInternalColumnName(java.lang.String internalName)
public Writable serialize(java.lang.Object obj, ObjectInspector objInspector) throws SerDeException
serialize
in interface Serializer
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector
in interface Deserializer
SerDeException
public java.lang.Class<? extends Writable> getSerializedClass()
Serializer
getSerializedClass
in interface Serializer
public SerDeStats getSerDeStats()
Deserializer
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
Copyright © 2012 The Apache Software Foundation