| Package | Description |
|---|---|
| org.apache.hadoop.io |
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
|
| org.apache.hadoop.util.bloom |
| Modifier and Type | Class | Description |
|---|---|---|
class |
SortedMapWritable<K extends WritableComparable<? super K>> |
A Writable SortedMap.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
BooleanWritable |
A WritableComparable for booleans.
|
class |
BytesWritable |
A byte sequence that is usable as a key or value.
|
class |
ByteWritable |
A WritableComparable for a single byte.
|
class |
DoubleWritable |
Writable for Double values.
|
class |
FloatWritable |
A WritableComparable for floats.
|
class |
IntWritable |
A WritableComparable for ints.
|
class |
LongWritable |
A WritableComparable for longs.
|
class |
MD5Hash |
A Writable for MD5 hash values.
|
class |
NullWritable |
Singleton Writable with no data.
|
class |
ShortWritable |
A WritableComparable for shorts.
|
class |
Text |
This class stores text using standard UTF8 encoding.
|
class |
UTF8 |
Deprecated.
replaced by Text
|
class |
VIntWritable |
A WritableComparable for integer values stored in variable-length format.
|
class |
VLongWritable |
A WritableComparable for longs in a variable-length format.
|
| Modifier and Type | Method | Description |
|---|---|---|
WritableComparable |
SetFile.Reader.get(WritableComparable key) |
Read the matching key from a set into
key. |
WritableComparable |
MapFile.Reader.getClosest(WritableComparable key,
Writable val) |
Finds the record that is the closest match to the specified key.
|
WritableComparable |
MapFile.Reader.getClosest(WritableComparable key,
Writable val,
boolean before) |
Finds the record that is the closest match to the specified key.
|
WritableComparable |
MapFile.Reader.midKey() |
Get the key at approximately the middle of the file.
|
WritableComparable |
WritableComparator.newKey() |
Construct a new
WritableComparable instance. |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class<? extends WritableComparable> |
WritableComparator.getKeyClass() |
Returns the WritableComparable implementation class.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
BloomMapFile.Writer.append(WritableComparable key,
Writable val) |
|
void |
MapFile.Writer.append(WritableComparable key,
Writable val) |
Append a key/value pair to the map.
|
void |
SetFile.Writer.append(WritableComparable key) |
Append a key to a set.
|
int |
LongWritable.DecreasingComparator.compare(WritableComparable a,
WritableComparable b) |
|
int |
WritableComparator.compare(WritableComparable a,
WritableComparable b) |
Compare two WritableComparables.
|
void |
MapFile.Reader.finalKey(WritableComparable key) |
Reads the final key from the file.
|
Writable |
BloomMapFile.Reader.get(WritableComparable key,
Writable val) |
Fast version of the
MapFile.Reader.get(WritableComparable, Writable) method. |
Writable |
MapFile.Reader.get(WritableComparable key,
Writable val) |
Return the value for the named key, or null if none exists.
|
WritableComparable |
SetFile.Reader.get(WritableComparable key) |
Read the matching key from a set into
key. |
WritableComparable |
MapFile.Reader.getClosest(WritableComparable key,
Writable val) |
Finds the record that is the closest match to the specified key.
|
WritableComparable |
MapFile.Reader.getClosest(WritableComparable key,
Writable val,
boolean before) |
Finds the record that is the closest match to the specified key.
|
boolean |
MapFile.Reader.next(WritableComparable key,
Writable val) |
Read the next key/value pair in the map into
key and
val. |
boolean |
SetFile.Reader.next(WritableComparable key) |
Read the next key in a set into
key. |
boolean |
BloomMapFile.Reader.probablyHasKey(WritableComparable key) |
Checks if this MapFile has the indicated key.
|
boolean |
MapFile.Reader.seek(WritableComparable key) |
Positions the reader at the named key, or if none such exists, at the
first entry after the named key.
|
boolean |
SetFile.Reader.seek(WritableComparable key) |
| Modifier and Type | Method | Description |
|---|---|---|
static WritableComparator |
WritableComparator.get(java.lang.Class<? extends WritableComparable> c) |
For backwards compatibility.
|
static WritableComparator |
WritableComparator.get(java.lang.Class<? extends WritableComparable> c,
Configuration conf) |
Get a comparator for a
WritableComparable implementation. |
static MapFile.Writer.Option |
MapFile.Writer.keyClass(java.lang.Class<? extends WritableComparable> value) |
| Constructor | Description |
|---|---|
Sorter(FileSystem fs,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
Configuration conf) |
Sort and merge files containing the named classes.
|
WritableComparator(java.lang.Class<? extends WritableComparable> keyClass) |
Construct for a
WritableComparable implementation. |
WritableComparator(java.lang.Class<? extends WritableComparable> keyClass,
boolean createInstances) |
|
WritableComparator(java.lang.Class<? extends WritableComparable> keyClass,
Configuration conf,
boolean createInstances) |
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass) |
Deprecated.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class<? extends Writable> valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress) |
Deprecated.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress) |
Deprecated.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
Progressable progress) |
Deprecated.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass) |
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress) |
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
CompressionCodec codec,
Progressable progress) |
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compress,
Progressable progress) |
Deprecated.
Use Writer(Configuration, Path, Option...) instead.
|
Writer(Configuration conf,
FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass,
SequenceFile.CompressionType compress) |
Create a set naming the element class and compression type.
|
Writer(FileSystem fs,
java.lang.String dirName,
java.lang.Class<? extends WritableComparable> keyClass) |
Deprecated.
pass a Configuration too
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
Key |
The general behavior of a key that must be stored in a filter.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.