InputSplit (Hadoop 0.20.2-cdh3u1 API)
Date: 2011-07-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.mapred
Interface InputSplit

All Superinterfaces:
  Writable

All Known Implementing Classes:
  CombineFileSplit, CompositeInputSplit, DBInputFormat.DBInputSplit, FileSplit, MultiFileSplit, SleepJob.EmptySplit

    public interface InputSplit

extends Writable

`InputSplit` represents the data to be processed by an individual `Mapper`.

Typically, it presents a byte-oriented view on the input and is the responsibility of `RecordReader` of the job to process this and present a record-oriented view.

See Also:
  `InputFormat`, `RecordReader`

Method Summary
`long` | `getLength()` Get the total number of bytes in the data of the `InputSplit`.
`String[]` | `getLocations()` Get the list of hostnames where the input split is located.

Methods inherited from interface org.apache.hadoop.io.Writable
`readFields, write`

Method Detail

### getLength

    long getLength()
                   throws IOException

  Get the total number of bytes in the data of the `InputSplit`.

  Returns:
    the number of bytes in the input split.
  Throws:
    `IOException`

### getLocations

    String[] getLocations()
                          throws IOException

  Get the list of hostnames where the input split is located.

  Returns:
    list of hostnames where data of the `InputSplit` is located as an array of `String`s.
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation