org.apache.flume.sink.hdfs
Class HDFSWritableFormatter
java.lang.Object
org.apache.flume.sink.hdfs.HDFSWritableFormatter
- All Implemented Interfaces:
- FlumeFormatter
public class HDFSWritableFormatter
- extends Object
- implements FlumeFormatter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HDFSWritableFormatter
public HDFSWritableFormatter()
getKeyClass
public Class<org.apache.hadoop.io.LongWritable> getKeyClass()
- Specified by:
getKeyClass
in interface FlumeFormatter
getValueClass
public Class<org.apache.hadoop.io.BytesWritable> getValueClass()
- Specified by:
getValueClass
in interface FlumeFormatter
getKey
public Object getKey(Event e)
- Specified by:
getKey
in interface FlumeFormatter
getValue
public Object getValue(Event e)
- Specified by:
getValue
in interface FlumeFormatter
getBytes
public byte[] getBytes(Event e)
- Specified by:
getBytes
in interface FlumeFormatter
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.