net.nutch.mapReduce
Class FileSplit

java.lang.Object
  extended bynet.nutch.mapReduce.FileSplit
All Implemented Interfaces:
InputFormat.Split

public class FileSplit
extends Object
implements InputFormat.Split

An InputFormat.Split implementation for sections of files.


Constructor Summary
FileSplit(NutchFileSystem fs, File file, long start, long length)
          Constructs a split.
 
Method Summary
 File getFile()
          The file containing this split's data.
 NutchFileSystem getFileSystem()
          The file system containing this split's data.
 long getLength()
          The number of bytes in the file to process.
 long getStart()
          The position of the first byte in the file to process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSplit

public FileSplit(NutchFileSystem fs,
                 File file,
                 long start,
                 long length)
Constructs a split.

Parameters:
fs - the NutchFileSystem the file lives in
file - the file name
start - the position of the first byte in the file to process
length - the number of bytes in the file to process
Method Detail

getFileSystem

public NutchFileSystem getFileSystem()
The file system containing this split's data.


getFile

public File getFile()
The file containing this split's data.


getStart

public long getStart()
The position of the first byte in the file to process.


getLength

public long getLength()
The number of bytes in the file to process.



Copyright © 2005 The Nutch Organization.