Package eu.stratosphere.api.java.record.io

Examples of eu.stratosphere.api.java.record.io.DelimitedInputFormat


  }

  public void registerFileInputTask(AbstractInputTask<?> inTask,
      Class<? extends DelimitedInputFormat> stubClass, String inPath, String delimiter)
  {
    DelimitedInputFormat format;
    try {
      format = stubClass.newInstance();
    }
    catch (Throwable t) {
      throw new RuntimeException("Could not instantiate test input format.", t);
    }
   
    format.setFilePath(inPath);
    format.setDelimiter(delimiter);
   
    TaskConfig dsConfig = new TaskConfig(this.mockEnv.getTaskConfiguration());
    dsConfig.setStubWrapper(new UserCodeObjectWrapper<DelimitedInputFormat>(format));
   
    this.inputSplitProvider.addInputSplits(inPath, 5);
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.java.record.io.DelimitedInputFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.