public class MetadataTypedColumnsetSerDe extends AbstractSerDe
Modifier and Type | Field and Description |
---|---|
static String |
defaultNullString |
static String |
DefaultSeparator |
static org.apache.commons.logging.Log |
LOG |
configErrors
Constructor and Description |
---|
MetadataTypedColumnsetSerDe() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(ColumnSet c,
String row,
String sep,
String nullString,
int limit)
Split the row into columns.
|
Object |
deserialize(org.apache.hadoop.io.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 org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method.
|
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveSerializer.
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
String |
toString() |
getConfigurationErrors, initialize
public static final org.apache.commons.logging.Log LOG
public static final String DefaultSeparator
public static final String defaultNullString
public MetadataTypedColumnsetSerDe() throws SerDeException
SerDeException
public void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
AbstractSerDe
initialize
in interface Deserializer
initialize
in interface Serializer
initialize
in class AbstractSerDe
job
- System properties. Can be null in compile timetbl
- table propertiesSerDeException
public static Object deserialize(ColumnSet c, String row, String sep, String nullString, int limit) throws Exception
limit
- up to limit columns will be produced (the last column takes all
the rest), -1 for unlimited.Exception
public Object deserialize(org.apache.hadoop.io.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 Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDe
getSerializedClass
in interface Serializer
getSerializedClass
in class AbstractSerDe
public org.apache.hadoop.io.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
Copyright © 2017 The Apache Software Foundation. All rights reserved.