## Uses of Class
org.apache.hadoop.mapreduce.InputFormat

- Packages that use InputFormat
  Package | Description
  --- | ---
  org.apache.hadoop.mapreduce |
  org.apache.hadoop.mapreduce.lib.db |
  org.apache.hadoop.mapreduce.lib.input |
  org.apache.hadoop.mapreduce.lib.join |
  org.apache.hadoop.mapreduce.lib.map |
  org.apache.hadoop.mapreduce.lib.partition |
  org.apache.hadoop.mapreduce.lib.reduce |
  org.apache.hadoop.mapreduce.task |

- - ### Uses of InputFormat in org.apache.hadoop.mapreduce

    Methods in org.apache.hadoop.mapreduce that return types with arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends InputFormat<?,?>>` | JobContext.`getInputFormatClass()` Get the `InputFormat` class for the job.

    Method parameters in org.apache.hadoop.mapreduce with type arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `void` | Job.`setInputFormatClass(Class<? extends InputFormat> cls)` Set the `InputFormat` for the job.

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.db

    Subclasses of InputFormat in org.apache.hadoop.mapreduce.lib.db
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DataDrivenDBInputFormat<T extends DBWritable>` A InputFormat that reads input data from an SQL table.
    `class` | `DBInputFormat<T extends DBWritable>` A InputFormat that reads input data from an SQL table.
    `class` | `OracleDataDrivenDBInputFormat<T extends DBWritable>` A InputFormat that reads input data from an SQL table in an Oracle db.

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.input

    Subclasses of InputFormat in org.apache.hadoop.mapreduce.lib.input
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CombineFileInputFormat<K,V>` An abstract `InputFormat` that returns `CombineFileSplit`'s in `getSplits(JobContext)` method.
    `class` | `CombineSequenceFileInputFormat<K,V>` Input format that is a `CombineFileInputFormat`-equivalent for `SequenceFileInputFormat`.
    `class` | `CombineTextInputFormat` Input format that is a `CombineFileInputFormat`-equivalent for `TextInputFormat`.
    `class` | `DelegatingInputFormat<K,V>` An `InputFormat` that delegates behavior of paths to multiple other InputFormats.
    `class` | `FileInputFormat<K,V>` A base class for file-based `InputFormat`s.
    `class` | `FixedLengthInputFormat` FixedLengthInputFormat is an input format used to read input files which contain fixed length records.
    `class` | `KeyValueTextInputFormat` An `InputFormat` for plain text files.
    `class` | `NLineInputFormat` NLineInputFormat which splits N lines of input as one split.
    `class` | `SequenceFileAsBinaryInputFormat` InputFormat reading keys, values from SequenceFiles in binary (raw) format.
    `class` | `SequenceFileAsTextInputFormat` This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader which converts the input keys and values to their String forms by calling toString() method.
    `class` | `SequenceFileInputFilter<K,V>` A class that allows a map/red job to work on a sample of sequence files.
    `class` | `SequenceFileInputFormat<K,V>` An `InputFormat` for `SequenceFile`s.
    `class` | `TextInputFormat` An `InputFormat` for plain text files.

    Method parameters in org.apache.hadoop.mapreduce.lib.input with type arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `static void` | MultipleInputs.`addInputPath(Job job, org.apache.hadoop.fs.Path path, Class<? extends InputFormat> inputFormatClass)` Add a `Path` with a custom `InputFormat` to the list of inputs for the map-reduce job.
    `static void` | MultipleInputs.`addInputPath(Job job, org.apache.hadoop.fs.Path path, Class<? extends InputFormat> inputFormatClass, Class<? extends Mapper> mapperClass)` Add a `Path` with a custom `InputFormat` and `Mapper` to the list of inputs for the map-reduce job.

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.join

    Subclasses of InputFormat in org.apache.hadoop.mapreduce.lib.join
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ComposableInputFormat<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>` Refinement of InputFormat requiring implementors to provide ComposableRecordReader instead of RecordReader.
    `class` | `CompositeInputFormat<K extends org.apache.hadoop.io.WritableComparable>` An InputFormat capable of performing joins over a set of data sources sorted and partitioned the same way.
    `static class` | `Parser.Node`

    Method parameters in org.apache.hadoop.mapreduce.lib.join with type arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `static String` | CompositeInputFormat.`compose(Class<? extends InputFormat> inf, String path)` Convenience method for constructing composite formats.
    `static String` | CompositeInputFormat.`compose(String op, Class<? extends InputFormat> inf, org.apache.hadoop.fs.Path... path)` Convenience method for constructing composite formats.
    `static String` | CompositeInputFormat.`compose(String op, Class<? extends InputFormat> inf, String... path)` Convenience method for constructing composite formats.

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.map

    Methods in org.apache.hadoop.mapreduce.lib.map that return types with arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends InputFormat<?,?>>` | WrappedMapper.Context.`getInputFormatClass()`

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.partition

    Methods in org.apache.hadoop.mapreduce.lib.partition with parameters of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `K[]` | InputSampler.Sampler.`getSample(InputFormat<K,V> inf, Job job)` For a given job, collect and return a subset of the keys from the input data.
    `K[]` | InputSampler.SplitSampler.`getSample(InputFormat<K,V> inf, Job job)` From each split sampled, take the first numSamples / numSplits records.
    `K[]` | InputSampler.RandomSampler.`getSample(InputFormat<K,V> inf, Job job)` Randomize the split order, then take the specified number of keys from each split sampled, where each key is selected with the specified probability and possibly replaced by a subsequently selected key when the quota of keys from that split is satisfied.
    `K[]` | InputSampler.IntervalSampler.`getSample(InputFormat<K,V> inf, Job job)` For each split sampled, emit when the ratio of the number of records retained to the total record count is less than the specified frequency.

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.lib.reduce

    Methods in org.apache.hadoop.mapreduce.lib.reduce that return types with arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends InputFormat<?,?>>` | WrappedReducer.Context.`getInputFormatClass()`

  - ### Uses of InputFormat in org.apache.hadoop.mapreduce.task

    Methods in org.apache.hadoop.mapreduce.task that return types with arguments of type InputFormat
    Modifier and Type | Method and Description
    --- | ---
    `Class<? extends InputFormat<?,?>>` | JobContextImpl.`getInputFormatClass()` Get the `InputFormat` class for the job.

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