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
SerDeException
public java.lang.String getShortName()
public static java.lang.String shortName()
public java.lang.String toString()
toString
in class java.lang.Object
public void initialize(Configuration job, java.util.Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
job
- System propertiestbl
- table propertiesSerDeException
public 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.Exception
public java.lang.Object deserialize(Writable field) throws SerDeException
AbstractSerDe
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
field
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDe
getObjectInspector
in interface Deserializer
getObjectInspector
in class AbstractSerDe
SerDeException
public java.lang.Class<? extends Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class AbstractSerDe
public Writable serialize(java.lang.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
Copyright © 2012 The Apache Software Foundation