public class MetadataTypedColumnsetSerDe extends AbstractSerDe
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultNullString |
static String |
DefaultSeparator |
static org.slf4j.Logger |
LOG |
configuration, log, partitionProperties, properties, tableProperties| 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(...).
|
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 configuration,
Properties tableProperties,
Properties partitionProperties)
Initialize the SerDe.
|
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
String |
toString() |
getColumnComments, getColumnNames, getColumnTypes, getConfiguration, getPartitionColumnComments, getPartitionColumnNames, getPartitionColumnTypes, getSerDeStats, parseColumnComments, parseColumnNames, parseColumnNames, parseColumnTypes, parseColumnTypes, shouldStoreFieldsInMetastoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleJobLevelConfigurationpublic static final org.slf4j.Logger LOG
public static final String DefaultSeparator
public static final String defaultNullString
public MetadataTypedColumnsetSerDe()
throws SerDeException
SerDeExceptionpublic String toString()
toString in class AbstractSerDepublic void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
throws SerDeException
AbstractSerDeinitialize in class AbstractSerDeconfiguration - Hadoop configurationtableProperties - Table propertiespartitionProperties - Partition properties (may be null if
table has no partitions)SerDeException - if SerDe fails to initializepublic 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.Exceptionpublic Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
Deserializerdeserialize in interface Deserializerdeserialize in class AbstractSerDefield - The Writable object containing a serialized objectSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
DeserializerSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
Serializerserialize in interface Serializerserialize in class AbstractSerDeSerDeExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.