1 2 3 4 package net.nutch.mapReduce; 5 6 import java.io.IOException ; 7 import java.io.File ; 8 9 import net.nutch.fs.NutchFileSystem; 10 11 12 public class FileSplit implements InputFormat.Split { 13 private NutchFileSystem fs; 14 private File file; 15 private long start; 16 private long length; 17 18 25 public FileSplit(NutchFileSystem fs, File file, long start, long length) { 26 this.fs = fs; 27 this.file = file; 28 this.start = start; 29 this.length = length; 30 } 31 32 33 public NutchFileSystem getFileSystem() { return fs; } 34 35 36 public File getFile() { return file; } 37 38 39 public long getStart() { return start; } 40 41 42 public long getLength() { return length; } 43 } 44 | Popular Tags |