|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.storm.hdfs.trident.format.DefaultSequenceFormat
public class DefaultSequenceFormat
Basic SequenceFormat
implementation that uses
LongWritable
for keys and Text
for values.
Constructor Summary | |
---|---|
DefaultSequenceFormat(String keyField,
String valueField)
|
Method Summary | |
---|---|
org.apache.hadoop.io.Writable |
key(TridentTuple tuple)
Given a tuple, return the key that should be written to the sequence file. |
Class |
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. |
Class |
valueClass()
Value class used by implementation (e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSequenceFormat(String keyField, String valueField)
Method Detail |
---|
public Class keyClass()
SequenceFormat
keyClass
in interface SequenceFormat
public Class valueClass()
SequenceFormat
valueClass
in interface SequenceFormat
public org.apache.hadoop.io.Writable key(TridentTuple tuple)
SequenceFormat
key
in interface SequenceFormat
public org.apache.hadoop.io.Writable value(TridentTuple tuple)
SequenceFormat
value
in interface SequenceFormat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |