public class DefaultSequenceFormat extends Object implements SequenceFormat
Basic SequenceFormat implementation that uses LongWritable for keys and Text for values.
| Constructor and Description |
|---|
DefaultSequenceFormat(String keyField,
String valueField) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Class keyClass()
SequenceFormatKey class used by implementation (e.g. IntWritable.class, etc.).
keyClass in interface SequenceFormatpublic Class valueClass()
SequenceFormatValue class used by implementation (e.g. Text.class, etc.).
valueClass in interface SequenceFormatpublic org.apache.hadoop.io.Writable key(TridentTuple tuple)
SequenceFormatGiven a tuple, return the key that should be written to the sequence file.
key in interface SequenceFormatpublic org.apache.hadoop.io.Writable value(TridentTuple tuple)
SequenceFormatGiven a tuple, return the value that should be written to the sequence file.
value in interface SequenceFormatCopyright © 2021 The Apache Software Foundation. All rights reserved.