int count = 0;
int max = 1000;
long start = System.currentTimeMillis();
final String table = "test1";
AsyncClientPool pool = new AsyncClientPool();
AsyncIface client = pool.getClient(Blur.AsyncIface.class, args[0]);
for (int i = 0; i < numberRows; i++) {
if (count >= max) {
double seconds = (System.currentTimeMillis() - start) / 1000.0;
double rate = i / seconds;
System.out.println("Rows indexed [" + i + "] at [" + rate + "/s]");
count = 0;
}
client.mutate(getRowMutation(i, table, wal, numberRecordsPerRow, numberOfColumns, numberOfFamilies, numberOfWords),
new AsyncMethodCallback<Blur.AsyncClient.mutate_call>() {
@Override
public void onError(Exception exception) {
exception.printStackTrace();
}