org.apache.flume.sink.hdfs
Class HDFSTextSerializer
java.lang.Object
org.apache.flume.sink.hdfs.HDFSTextSerializer
- All Implemented Interfaces:
- SequenceFileSerializer
public class HDFSTextSerializer
- extends Object
- implements SequenceFileSerializer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HDFSTextSerializer
public HDFSTextSerializer()
getKeyClass
public Class<org.apache.hadoop.io.LongWritable> getKeyClass()
- Specified by:
getKeyClass
in interface SequenceFileSerializer
getValueClass
public Class<org.apache.hadoop.io.Text> getValueClass()
- Specified by:
getValueClass
in interface SequenceFileSerializer
serialize
public Iterable<SequenceFileSerializer.Record> serialize(Event e)
- Description copied from interface:
SequenceFileSerializer
- Format the given event into zero, one or more SequenceFile records
- Specified by:
serialize
in interface SequenceFileSerializer
- Parameters:
e
- event
- Returns:
- a list of records corresponding to the given event
Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.