Package org.goldenorb.io.output.checkpoint

Examples of org.goldenorb.io.output.checkpoint.CheckPointDataOutput


    OrbConfiguration orbConf = new OrbConfiguration();
    orbConf.set("fs.default.name", "hdfs://localhost:" + cluster.getNameNodePort());
    orbConf.setJobNumber("0");
    orbConf.setFileOutputPath("test");
   
    CheckPointDataOutput checkpointOutput = new CheckPointDataOutput(orbConf, superStep, partition);
   
    IntWritable intOutput = new IntWritable(4);
    intOutput.write(checkpointOutput);
   
    LongWritable longOutput = new LongWritable(9223372036854775807L);
    longOutput.write(checkpointOutput);
   
    Text textOutput = new Text("test");
    textOutput.write(checkpointOutput);
   
    FloatWritable floatOutput = new FloatWritable(3.14159F);
    floatOutput.write(checkpointOutput);
   
    checkpointOutput.close();
   
    assertThat(checkpointOutput, notNullValue());
  }
View Full Code Here

TOP

Related Classes of org.goldenorb.io.output.checkpoint.CheckPointDataOutput

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.