System.out.println(i+" entries processed so far.");
}
}
}
if(command.equals("read")){
// read the database and compare with random entries;
// args: <number-of-entries> <random-startpoint>
longcount=Long.parseLong(args[3]);
longrandomstart=Long.parseLong(args[4]);
Randomrandom=newRandom(randomstart);
kelondroRow.Entryentry;
byte[]key;
for(inti=0;i<count;i++){
key=randomHash(random);
entry=table.get(key);
if(entry==null)System.out.println("missing value for entry "+newString(key));else
if(!(newString(entry.getColBytes(1)).equals(newString(key))))System.out.println("wrong value for entry "+newString(key)+": "+newString(entry.getColBytes(1)));
if(i%500==0){
System.out.println(i+" entries processed so far.");