Package org.apache.hadoop.vertica

Examples of org.apache.hadoop.vertica.VerticaInputFormat


    assertEquals("Result value should be three", value.getValues().get(0), "three");
    reader.close();
  }

  public void validateInput(Job job) throws IOException {
    VerticaInputFormat input = new VerticaInputFormat();
    List<InputSplit> splits = null;

    Configuration conf = job.getConfiguration();
    conf.setInt("mapreduce.job.maps", 1);
    JobContext context = new JobContextImpl(conf, new JobID());

    splits = input.getSplits(context);
    assert splits.size() == 1;

    conf.setInt("mapreduce.job.maps", 3);
    splits = input.getSplits(context);
    assert splits.size() == 3;

    conf.setInt("mapreduce.job.maps", 10);
    splits = input.getSplits(context);
    assert splits.size() == 10;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.vertica.VerticaInputFormat

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.