public class TestSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DefaultSeparator |
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
TestSerDe() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
deserialize(ColumnSet c,
java.lang.String row,
java.lang.String sep,
java.lang.String nullString) |
java.lang.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
|
java.lang.Class<? extends Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
java.lang.String |
getShortName() |
void |
initialize(Configuration job,
java.util.Properties tbl)
Initialize the HiveSerializer.
|
Writable |
serialize(java.lang.Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
static java.lang.String |
shortName() |
java.lang.String |
toString() |
public static final org.apache.commons.logging.Log LOG
public static final java.lang.String DefaultSeparator
public TestSerDe()
throws SerDeException
SerDeExceptionpublic java.lang.String getShortName()
public static java.lang.String shortName()
public java.lang.String toString()
toString in class java.lang.Objectpublic void initialize(Configuration job,
java.util.Properties tbl)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDejob - System propertiestbl - table propertiesSerDeExceptionpublic static java.lang.Object deserialize(ColumnSet c, java.lang.String row, java.lang.String sep, java.lang.String nullString) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object deserialize(Writable field)
throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDefield - The Writable object containing a serialized objectSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic java.lang.Class<? extends Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic Writable serialize(java.lang.Object obj,
ObjectInspector objInspector)
throws SerDeException
AbstractSerDeserialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionpublic SerDeStats getSerDeStats()
AbstractSerDegetSerDeStats in interface DeserializergetSerDeStats in interface SerializergetSerDeStats in class AbstractSerDeCopyright © 2012 The Apache Software Foundation