public final class OpenCSVSerde extends AbstractEncodingAwareSerDe
| Modifier and Type | Field and Description |
|---|---|
static String |
ESCAPECHAR |
static String |
QUOTECHAR |
static String |
SEPARATORCHAR |
charsetconfiguration, log, partitionProperties, properties, tableProperties| Constructor and Description |
|---|
OpenCSVSerde() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doDeserialize(org.apache.hadoop.io.Writable blob) |
org.apache.hadoop.io.Writable |
doSerialize(Object obj,
ObjectInspector objInspector) |
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.
|
protected org.apache.hadoop.io.Text |
transformFromUTF8(org.apache.hadoop.io.Writable blob)
transform Writable data from UTF-8 to charset before serialize.
|
protected org.apache.hadoop.io.Text |
transformToUTF8(org.apache.hadoop.io.Writable blob)
transform Writable data from charset to UTF-8 before doDeserialize.
|
deserialize, serializegetColumnComments, getColumnNames, getColumnTypes, getConfiguration, getPartitionColumnComments, getPartitionColumnNames, getPartitionColumnTypes, getSerDeStats, parseColumnComments, parseColumnNames, parseColumnNames, parseColumnTypes, parseColumnTypes, shouldStoreFieldsInMetastore, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleJobLevelConfigurationpublic static final String SEPARATORCHAR
public static final String QUOTECHAR
public static final String ESCAPECHAR
public void initialize(org.apache.hadoop.conf.Configuration configuration,
Properties tableProperties,
Properties partitionProperties)
throws SerDeException
AbstractSerDeinitialize in class AbstractEncodingAwareSerDeconfiguration - Hadoop configurationtableProperties - Table propertiespartitionProperties - Partition properties (may be null if
table has no partitions)SerDeException - if SerDe fails to initializepublic org.apache.hadoop.io.Writable doSerialize(Object obj, ObjectInspector objInspector) throws SerDeException
doSerialize in class AbstractEncodingAwareSerDeSerDeExceptionpublic Object doDeserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
doDeserialize in class AbstractEncodingAwareSerDeSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
DeserializerSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDeprotected org.apache.hadoop.io.Text transformFromUTF8(org.apache.hadoop.io.Writable blob)
AbstractEncodingAwareSerDetransformFromUTF8 in class AbstractEncodingAwareSerDeprotected org.apache.hadoop.io.Text transformToUTF8(org.apache.hadoop.io.Writable blob)
AbstractEncodingAwareSerDetransformToUTF8 in class AbstractEncodingAwareSerDeCopyright © 2024 The Apache Software Foundation. All rights reserved.