@Test
public void reduce1() throws IOException {
reduceDriver.getConfiguration().setInt(Constants.PROP_BLOCK_SIZE, 2);
reduceDriver.addInput(new VLongWritable(0), Arrays.asList(
blockVector(TYPE.VECTOR_INITIAL, 0, 1),
blockVector(TYPE.VECTOR_INCOMPLETE, 0, 0),
blockVector(TYPE.VECTOR_INCOMPLETE, 2, 2)));
reduceDriver.addInput(new VLongWritable(1), Arrays.asList(
blockVector(TYPE.VECTOR_INITIAL, 2, 3),
blockVector(TYPE.VECTOR_INCOMPLETE, 0, 1),
blockVector(TYPE.VECTOR_INCOMPLETE, 2, 3)));
reduceDriver.addOutput(blockIndex(0), blockVector(TYPE.VECTOR_INCOMPLETE, 0, 0));
reduceDriver.addOutput(blockIndex(1), blockVector(TYPE.VECTOR_INCOMPLETE, 0, 1));
reduceDriver.runTest();
}
Runner2Test.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:piqconnect
作者:
评论列表
文章目录