public class DefaultSequenceFormat extends Object implements SequenceFormat
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(Tuple 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(Tuple 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()
SequenceFormat
keyClass
in interface SequenceFormat
public Class valueClass()
SequenceFormat
valueClass
in interface SequenceFormat
public org.apache.hadoop.io.Writable key(Tuple tuple)
SequenceFormat
key
in interface SequenceFormat
public org.apache.hadoop.io.Writable value(Tuple tuple)
SequenceFormat
value
in interface SequenceFormat
Copyright © 2023 The Apache Software Foundation. All rights reserved.