package water.fvec;

import java.io.File;

import org.apache.hadoop.fs.FileStatus;

import water.*;
import water.persist.PersistHdfs;
import water.persist.PersistNFS;

// A distributed file-backed Vector
//
public class NFSFileVec extends FileVec {

  // Make a new NFSFileVec key which holds the filename implicitly.
  // This name is used by the DVecs to load data on-demand.
  public static Key make(File f) {
    Futures fs = new Futures();
    Key key = make(f, fs);
    fs.blockForPending();
    return key;
  }

  public static Key make(File f, Futures fs) {
    long size = f.length();
    Key k = Vec.newKey(PersistNFS.decodeFile(f));
    // Insert the top-level FileVec key into the store
    DKV.put(k,new NFSFileVec(k,size), fs);
    return k;
  }

  public static Key make(FileStatus f, Futures fs) {
    long size = f.getLen();
    Key k = Vec.newKey(Key.make(f.getPath().toString()));
    // Insert the top-level FileVec key into the store
    DKV.put(k,new NFSFileVec(k,size), fs);
    return k;
  }

  private NFSFileVec(Key key, long len) {super(key,len,Value.NFS);}
}

@@ -47,90 +47,15 @@
 ort 
-org.apache.hadoop.fs.FileStatus;%0A%0Aimport water.*;%0Aimport water.persist.PersistHdfs
+water.*
 ;%0Aim
@@ -683,264 +683,8 @@
  %7D%0A%0A
-  public static Key make(FileStatus f, Futures fs) %7B%0A    long size = f.getLen();%0A    Key k = Vec.newKey(Key.make(f.getPath().toString()));%0A    // Insert the top-level FileVec key into the store%0A    DKV.put(k,new NFSFileVec(k,size), fs);%0A    return k;%0A  %7D%0A%0A
   pr

Remove unused Key.make for Hadoop FileStatus.