public class SyslogSerDe extends AbstractSerDe
configuration, log, partitionProperties, properties, tableProperties
Constructor and Description |
---|
SyslogSerDe() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(org.apache.hadoop.io.Writable writable)
Deserialize an object out of a Writable blob.
|
List<String> |
getColumnNames() |
List<TypeInfo> |
getColumnTypes() |
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 o,
ObjectInspector objectInspector)
Serialize an object by navigating inside the Object with the
ObjectInspector.
|
getColumnComments, getConfiguration, getPartitionColumnComments, getPartitionColumnNames, getPartitionColumnTypes, getSerDeStats, parseColumnComments, parseColumnNames, parseColumnNames, parseColumnTypes, parseColumnTypes, shouldStoreFieldsInMetastore, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleJobLevelConfiguration
public void initialize(org.apache.hadoop.conf.Configuration configuration, Properties tableProperties, Properties partitionProperties) throws SerDeException
AbstractSerDe
initialize
in class AbstractSerDe
configuration
- Hadoop configurationtableProperties
- Table propertiespartitionProperties
- Partition properties (may be null
if
table has no partitions)SerDeException
- if SerDe fails to initializepublic List<String> getColumnNames()
getColumnNames
in class AbstractSerDe
public List<TypeInfo> getColumnTypes()
getColumnTypes
in class AbstractSerDe
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 o, ObjectInspector objectInspector) throws SerDeException
Serializer
serialize
in interface Serializer
serialize
in class AbstractSerDe
SerDeException
public Object deserialize(org.apache.hadoop.io.Writable writable) throws SerDeException
Deserializer
deserialize
in interface Deserializer
deserialize
in class AbstractSerDe
writable
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector()
Deserializer
Copyright © 2022 The Apache Software Foundation. All rights reserved.