public class S3LogDeserializer extends AbstractDeserializer
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
S3LogDeserializer() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(S3LogStruct c,
String row) |
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
|
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveDeserializer.
|
static void |
main(String[] args) |
static Integer |
toInt(String s) |
String |
toString() |
public S3LogDeserializer() throws SerDeException
SerDeException
public void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
AbstractDeserializer
initialize
in interface Deserializer
initialize
in class AbstractDeserializer
job
- System propertiestbl
- table propertiesSerDeException
public static Object deserialize(S3LogStruct c, String row) throws Exception
Exception
public Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
AbstractDeserializer
deserialize
in interface Deserializer
deserialize
in class AbstractDeserializer
field
- The Writable object containing a serialized objectSerDeException
public ObjectInspector getObjectInspector() throws SerDeException
AbstractDeserializer
getObjectInspector
in interface Deserializer
getObjectInspector
in class AbstractDeserializer
SerDeException
public static void main(String[] args)
args
- public SerDeStats getSerDeStats()
AbstractDeserializer
getSerDeStats
in interface Deserializer
getSerDeStats
in class AbstractDeserializer
Copyright © 2017 The Apache Software Foundation. All rights reserved.