public Long call() throws Exception {
  for (int i=0; i < nops; i++) {
    Record record=writer.getRandomGroundTruthRecord();
    ByteBuffer buf;
    if (r.nextInt(100) > 30) {
      buf=store.read(record.addr);
    }
 else {
      buf=ByteBuffer.allocate(store.getByteCount(record.addr));
      buf=store.read(record.addr);
    }
    assertEquals(record.data,buf);
  }
  return 0L;
}

public Long call ( ) throws Exception { for ( int i = 0 ; i < nops ; i ++ ) { Record record = writer . getRandomGroundTruthRecord ( ) ; ByteBuffer buf ; if ( r . nextInt ( 100 ) > 30 ) { buf = store . read ( record . addr ) ; } else { buf = ByteBuffer . allocate ( store . getByteCount ( record . addr ) ) ; buf = store . read ( record . addr ) ; } assertEquals ( record . data , buf ) ; } return 0L ; }
executes random reads and validates against ground truth .
