/** Construct reading from a file. */ public Params(File file) throws IOException { this(new InputFile(file)); }
/** Construct reading from the named file. */ public ColumnFileReader(File file) throws IOException { this(new InputFile(file)); }
static Input input(String filename) throws IOException { if (filename.startsWith("hdfs://")) { return new HadoopInput(new Path(filename), new Configuration()); } else { return new InputFile(new File(filename)); } }
/** Construct reading from the named file. */ public ColumnFileReader(File file) throws IOException { this(new InputFile(file)); }
/** Construct reading from a file. */ public Params(File file) throws IOException { this(new InputFile(file)); }
@Bean @Scope("prototype") @Value("\\path\\to\\the\\input\\file") public InputFile inputFile (String path) { InputFile inputFile = new InputFile(); inputFile.setPath(path); return inputFile; }
static Input input(String filename) throws IOException { if (filename.startsWith("hdfs://")) { return new HadoopInput(new Path(filename), new Configuration()); } else { return new InputFile(new File(filename)); } }
static Input input(String filename) throws IOException { if (filename.startsWith("hdfs://")) { return new HadoopInput(new Path(filename), new Configuration()); } else { return new InputFile(new File(filename)); } }