|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.AbstractSerDe
org.apache.hadoop.hive.serde2.TestSerDe
public class TestSerDe
TestSerDe.
Field Summary | |
---|---|
static String |
DefaultSeparator
|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
TestSerDe()
|
Method Summary | |
---|---|
static Object |
deserialize(ColumnSet c,
String row,
String sep,
String nullString)
|
Object |
deserialize(Writable field)
Deserialize an object out of a Writable blob. |
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
SerDeStats |
getSerDeStats()
Returns statistics collected when serializing |
Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
String |
getShortName()
|
void |
initialize(Configuration job,
Properties tbl)
Initialize the HiveSerializer. |
Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the ObjectInspector. |
static String |
shortName()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final String DefaultSeparator
Constructor Detail |
---|
public TestSerDe() throws SerDeException
SerDeException
Method Detail |
---|
public String getShortName()
public static String shortName()
public String toString()
toString
in class Object
public void initialize(Configuration job, Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
job
- System propertiestbl
- table properties
SerDeException
public static Object deserialize(ColumnSet c, String row, String sep, String nullString) throws Exception
Exception
public Object deserialize(Writable field) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
field
- The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDe
getObjectInspector
in interface Deserializer
getObjectInspector
in class AbstractSerDe
SerDeException
public Class<? extends Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class AbstractSerDe
public Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
AbstractSerDe
serialize
in interface Serializer
serialize
in class AbstractSerDe
SerDeException
public SerDeStats getSerDeStats()
AbstractSerDe
getSerDeStats
in interface Deserializer
getSerDeStats
in interface Serializer
getSerDeStats
in class AbstractSerDe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |