## Uses of Class
org.apache.hadoop.io.WritableComparator

- Packages that use WritableComparator
  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.

- - ### Uses of WritableComparator in org.apache.hadoop.io

    Subclasses of WritableComparator in org.apache.hadoop.io
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BooleanWritable.Comparator` A Comparator optimized for BooleanWritable.
    `static class` | `BytesWritable.Comparator` A Comparator optimized for BytesWritable.
    `static class` | `ByteWritable.Comparator` A Comparator optimized for ByteWritable.
    `static class` | `DoubleWritable.Comparator` A Comparator optimized for DoubleWritable.
    `static class` | `FloatWritable.Comparator` A Comparator optimized for FloatWritable.
    `static class` | `IntWritable.Comparator` A Comparator optimized for IntWritable.
    `static class` | `LongWritable.Comparator` A Comparator optimized for LongWritable.
    `static class` | `LongWritable.DecreasingComparator` A decreasing Comparator optimized for LongWritable.
    `static class` | `MD5Hash.Comparator` A WritableComparator optimized for MD5Hash keys.
    `static class` | `NullWritable.Comparator` A Comparator "optimized" for NullWritable.
    `static class` | `ShortWritable.Comparator` A Comparator optimized for ShortWritable.
    `static class` | `Text.Comparator` A WritableComparator optimized for Text keys.
    `static class` | `UTF8.Comparator` Deprecated. A WritableComparator optimized for UTF8 keys.

    Methods in org.apache.hadoop.io that return WritableComparator
    Modifier and Type | Method and Description
    --- | ---
    `static WritableComparator` | WritableComparator.`get(Class<? extends WritableComparable> c)` For backwards compatibility.
    `static WritableComparator` | WritableComparator.`get(Class<? extends WritableComparable> c, Configuration conf)` Get a comparator for a `WritableComparable` implementation.

    Methods in org.apache.hadoop.io with parameters of type WritableComparator
    Modifier and Type | Method and Description
    --- | ---
    `static MapFile.Writer.Option` | MapFile.Writer.`comparator(WritableComparator value)`
    `static MapFile.Reader.Option` | MapFile.Reader.`comparator(WritableComparator value)`
    `static void` | WritableComparator.`define(Class c, WritableComparator comparator)` Register an optimized comparator for a `WritableComparable` implementation.
    `protected void` | MapFile.Reader.`open(Path dir, WritableComparator comparator, Configuration conf, SequenceFile.Reader.Option... options)`

    Constructors in org.apache.hadoop.io with parameters of type WritableComparator
    Constructor and Description
    `Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf)` Construct a set reader for the named set using the named comparator.
    `Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf)` Deprecated.
    `Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf)` Deprecated.
    `Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf, boolean open)` Deprecated.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass)` Deprecated. Use Writer(Configuration, Path, Option...) instead.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass)` Deprecated.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress)` Deprecated. Use Writer(Configuration, Path, Option...) instead.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress)` Deprecated.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress, CompressionCodec codec, Progressable progress)` Deprecated. Use Writer(Configuration, Path, Option...) instead.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress, CompressionCodec codec, Progressable progress)` Deprecated.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress, Progressable progress)` Deprecated. Use Writer(Configuration, Path, Option...)} instead.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, Class valClass, SequenceFile.CompressionType compress, Progressable progress)` Deprecated.
    `Writer(Configuration conf, FileSystem fs, String dirName, WritableComparator comparator, SequenceFile.CompressionType compress)` Create a set naming the element comparator and compression type.

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.