public class SMSerDe
extends java.lang.Object
implements org.apache.hadoop.hive.serde2.SerDe
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
colNames |
protected java.util.List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> |
colTypes |
protected static org.apache.log4j.Logger |
Log |
protected java.util.List<java.lang.Object> |
objectCache |
protected org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
rowOI |
protected org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo |
rowTypeInfo |
protected SMSQLUtil |
sqlUtil |
protected java.lang.String |
tableName |
Constructor and Description |
---|
SMSerDe() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(org.apache.hadoop.io.Writable blob)
This method does the work of deserializing a record into Java objects
that Hive can work with via the ObjectInspector interface.
|
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector()
Return an ObjectInspector for the row of data
|
org.apache.hadoop.hive.serde2.SerDeStats |
getSerDeStats()
Unimplemented
|
java.lang.Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Return the class that stores the serialized data representation.
|
void |
initialize(org.apache.hadoop.conf.Configuration conf,
java.util.Properties tbl)
An initialization function used to gather information about the table.
|
org.apache.hadoop.io.Writable |
serialize(java.lang.Object obj,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector oi)
This method takes an object representing a row of data from Hive, and
uses the ObjectInspector to get the data for each column and serialize
it.
|
protected org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo rowTypeInfo
protected org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector rowOI
protected SMSQLUtil sqlUtil
protected java.util.List<java.lang.String> colNames
protected java.util.List<org.apache.hadoop.hive.serde2.typeinfo.TypeInfo> colTypes
protected static org.apache.log4j.Logger Log
protected java.util.List<java.lang.Object> objectCache
protected java.lang.String tableName
public void initialize(org.apache.hadoop.conf.Configuration conf, java.util.Properties tbl) 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 java.lang.Object deserialize(org.apache.hadoop.io.Writable blob) 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 java.lang.Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass
in interface org.apache.hadoop.hive.serde2.Serializer
public org.apache.hadoop.io.Writable serialize(java.lang.Object obj, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector oi) throws org.apache.hadoop.hive.serde2.SerDeException
serialize
in interface org.apache.hadoop.hive.serde2.Serializer
org.apache.hadoop.hive.serde2.SerDeException