Class DefaultSequenceFormat
- java.lang.Object
-
- org.apache.storm.hdfs.bolt.format.DefaultSequenceFormat
-
- All Implemented Interfaces:
Serializable,SequenceFormat
public class DefaultSequenceFormat extends Object implements SequenceFormat
BasicSequenceFormatimplementation that usesLongWritablefor keys andTextfor values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultSequenceFormat(String keyField, String valueField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.io.Writablekey(Tuple tuple)Given a tuple, return the key that should be written to the sequence file.ClasskeyClass()Key class used by implementation (e.g.org.apache.hadoop.io.Writablevalue(Tuple tuple)Given a tuple, return the value that should be written to the sequence file.ClassvalueClass()Value class used by implementation (e.g.
-
-
-
Method Detail
-
keyClass
public Class keyClass()
Description copied from interface:SequenceFormatKey class used by implementation (e.g. IntWritable.class, etc.).- Specified by:
keyClassin interfaceSequenceFormat
-
valueClass
public Class valueClass()
Description copied from interface:SequenceFormatValue class used by implementation (e.g. Text.class, etc.).- Specified by:
valueClassin interfaceSequenceFormat
-
key
public org.apache.hadoop.io.Writable key(Tuple tuple)
Description copied from interface:SequenceFormatGiven a tuple, return the key that should be written to the sequence file.- Specified by:
keyin interfaceSequenceFormat
-
value
public org.apache.hadoop.io.Writable value(Tuple tuple)
Description copied from interface:SequenceFormatGiven a tuple, return the value that should be written to the sequence file.- Specified by:
valuein interfaceSequenceFormat
-
-