Package org.goldenorb.io.input.checkpoint

Examples of org.goldenorb.io.input.checkpoint.CheckPointDataInput


    OrbConfiguration orbConf = new OrbConfiguration();
    orbConf.set("fs.default.name", "hdfs://localhost:" + cluster.getNameNodePort());
    orbConf.setJobNumber("0");
    orbConf.setFileOutputPath("test");
   
    CheckPointDataInput checkpointInput = new CheckPointDataInput(orbConf, superStep, partition);
   
    // Data is read on a FIFO basis
   
    IntWritable intInput = new IntWritable();
    intInput.readFields(checkpointInput);
   
    LongWritable longInput = new LongWritable();
    longInput.readFields(checkpointInput);
   
    Text textInput = new Text();
    textInput.readFields(checkpointInput);
   
    FloatWritable floatInput = new FloatWritable();
    floatInput.readFields(checkpointInput);
   
    checkpointInput.close();
   
    assertThat(checkpointInput, notNullValue());
    assertEquals(intInput.get(), 4);
    assertEquals(longInput.get(), 9223372036854775807L);
    assertEquals(textInput.toString(), "test");
View Full Code Here

TOP

Related Classes of org.goldenorb.io.input.checkpoint.CheckPointDataInput

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.