Examples of requireSortedTable()


Examples of org.apache.hadoop.zebra.mapreduce.TableInputFormat.requireSortedTable()

    TableInputFormat inputFormat = new TableInputFormat();
    Job job = new Job(conf);
    inputFormat.setInputPaths(job, path);
    inputFormat.setMinSplitSize(job, 100);
    inputFormat.setProjection(job, "d");
    inputFormat.requireSortedTable( job, null );
    List<InputSplit> splits = inputFormat.getSplits(job);
   
    int index = 0;
    for( InputSplit is : splits ) {
      Assert.assertTrue( is instanceof SortedTableSplit );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.