Class DefaultSequenceFormat
java.lang.Object
org.apache.storm.hdfs.trident.format.DefaultSequenceFormat
- All Implemented Interfaces:
Serializable
,SequenceFormat
Basic
SequenceFormat
implementation that uses
LongWritable
for keys and Text
for values.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.io.Writable
key
(TridentTuple tuple) Given a tuple, return the key that should be written to the sequence file.keyClass()
Key class used by implementation (e.g.org.apache.hadoop.io.Writable
value
(TridentTuple tuple) Given a tuple, return the value that should be written to the sequence file.Value class used by implementation (e.g.
-
Constructor Details
-
DefaultSequenceFormat
-
-
Method Details
-
keyClass
Description copied from interface:SequenceFormat
Key class used by implementation (e.g. IntWritable.class, etc.).- Specified by:
keyClass
in interfaceSequenceFormat
-
valueClass
Description copied from interface:SequenceFormat
Value class used by implementation (e.g. Text.class, etc.).- Specified by:
valueClass
in interfaceSequenceFormat
-
key
Description copied from interface:SequenceFormat
Given a tuple, return the key that should be written to the sequence file.- Specified by:
key
in interfaceSequenceFormat
-
value
Description copied from interface:SequenceFormat
Given a tuple, return the value that should be written to the sequence file.- Specified by:
value
in interfaceSequenceFormat
-