Examples of PipeMapRed


Examples of org.apache.hadoop.streaming.PipeMapRed

public class TestKeyOnlyTextOutputReader {
  @Test
  public void testKeyOnlyTextOutputReader() throws IOException {
    String text = "key,value\nkey2,value2\nnocomma\n";
    PipeMapRed pipeMapRed = new MyPipeMapRed(text);
    KeyOnlyTextOutputReader outputReader = new KeyOnlyTextOutputReader();
    outputReader.initialize(pipeMapRed);
    outputReader.readKeyValue();
    Assert.assertEquals(new Text("key,value"), outputReader.getCurrentKey());
    outputReader.readKeyValue();
View Full Code Here

Examples of org.apache.hadoop.streaming.PipeMapRed

public class TestKeyOnlyTextOutputReader {
  @Test
  public void testKeyOnlyTextOutputReader() throws IOException {
    String text = "key,value\nkey2,value2\nnocomma\n";
    PipeMapRed pipeMapRed = new MyPipeMapRed(text);
    KeyOnlyTextOutputReader outputReader = new KeyOnlyTextOutputReader();
    outputReader.initialize(pipeMapRed);
    outputReader.readKeyValue();
    Assert.assertEquals(new Text("key,value"), outputReader.getCurrentKey());
    outputReader.readKeyValue();
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.