public class MetadataTypedColumnsetSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
defaultNullString |
static java.lang.String |
DefaultSeparator |
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
MetadataTypedColumnsetSerDe() |
| 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,
int limit)
Split the row into columns.
|
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.
|
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.
|
java.lang.String |
toString() |
public static final org.apache.commons.logging.Log LOG
public static final java.lang.String DefaultSeparator
public static final java.lang.String defaultNullString
public MetadataTypedColumnsetSerDe()
throws SerDeException
SerDeExceptionpublic 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, int limit) throws java.lang.Exception
limit - up to limit columns will be produced (the last column takes all
the rest), -1 for unlimited.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