public class RegexSerDe extends AbstractSerDe
://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax
NOTE: Obviously, all columns have to be strings. Users can use
"CAST(a AS INT)" to convert columns to other types.
NOTE: This implementation is using String, and javaStringObjectInspector. A
more efficient implementation should use UTF-8 encoded Text and
writableStringObjectInspector. We should switch to that when we have a UTF-8
based Regex library.| Modifier and Type | Field and Description |
|---|---|
static String |
INPUT_REGEX |
static String |
INPUT_REGEX_CASE_SENSITIVE |
static org.slf4j.Logger |
LOG |
static String |
OUTPUT_FORMAT_STRING |
configErrors| Constructor and Description |
|---|
RegexSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(org.apache.hadoop.io.Writable blob)
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 conf,
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.
|
getConfigurationErrors, initialize, shouldStoreFieldsInMetastorepublic static final org.slf4j.Logger LOG
public static final String INPUT_REGEX
public static final String OUTPUT_FORMAT_STRING
public static final String INPUT_REGEX_CASE_SENSITIVE
public void initialize(org.apache.hadoop.conf.Configuration conf,
Properties tbl)
throws SerDeException
AbstractSerDeinitialize in interface Deserializerinitialize in interface Serializerinitialize in class AbstractSerDeconf - System properties. Can be null in compile timetbl - table propertiesSerDeExceptionpublic ObjectInspector getObjectInspector() throws SerDeException
AbstractSerDegetObjectInspector in interface DeserializergetObjectInspector in class AbstractSerDeSerDeExceptionpublic Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
AbstractSerDegetSerializedClass in interface SerializergetSerializedClass in class AbstractSerDepublic Object deserialize(org.apache.hadoop.io.Writable blob) throws SerDeException
AbstractSerDedeserialize in interface Deserializerdeserialize in class AbstractSerDeblob - The Writable object containing a serialized objectSerDeExceptionpublic org.apache.hadoop.io.Writable serialize(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 © 2019 The Apache Software Foundation. All Rights Reserved.