-
- // System.out.println("Time Taken: " + (double) ((endTime - startTime) / 1000.0) );
- // System.out.println("Time Taken Per Key: " + (double) (((endTime - startTime) / 1000.0) / (NUMBER_OF_TESTS * 4)) );
- // System.out.println();
-
-
- // // Do Updates for the keys
- // System.out.println("Setting Key-Values...");
- // startTime = System.currentTimeMillis();
-
-
-
- // String keyA0 = "a0";
- // String keyB0 = "b0";
- // String keyC0 = "c0";
- // String keyD0 = "d0";
- // String valueA0 = "a0";
- // String valueB0 = "b0";
- // String valueC0 = "c0";
- // String valueD0 = "d0";
-
- // IoTString iKeyA0 = new IoTString(keyA0);
- // IoTString iKeyB0 = new IoTString(keyB0);
- // IoTString iKeyC0 = new IoTString(keyC0);
- // IoTString iKeyD0 = new IoTString(keyD0);
- // IoTString iValueA0 = new IoTString(valueA0);
- // IoTString iValueB0 = new IoTString(valueB0);
- // IoTString iValueC0 = new IoTString(valueC0);
- // IoTString iValueD0 = new IoTString(valueD0);
-
- // t1.startTransaction();
- // t1.addKV( iKeyA0, iValueA0);
- // t1.commitTransaction();
-
- // t1.startTransaction();
- // t1.addKV(iKeyB0, iValueB0);
- // t1.commitTransaction();
-
- // t2.startTransaction();
- // t2.addKV(iKeyC0, iValueC0);
- // t2.commitTransaction();
-
- // t2.startTransaction();
- // t2.addKV(iKeyD0, iValueD0);
- // t2.commitTransaction();
-
- // for (int i = 1; i < NUMBER_OF_TESTS; i++) {
- // String keyB = "b" + i;
- // String valueB = "b" + i;
- // IoTString iKeyB = new IoTString(keyB);
- // IoTString iValueB = new IoTString(valueB);
-
- // String keyBOld = "b" + (i - 1);
- // String valueBOld = "b" + (i - 2);
- // IoTString iKeyBOld = new IoTString(keyBOld);
- // IoTString iValueBOld = new IoTString(valueBOld);
-
-
- // t1.startTransaction();
- // t1.addGuard(new Guard(new IoTString(Guard.createExpression(iKeyBOld, iValueBOld, Guard.Equal))));
- // t1.addKV(iKeyB, iValueB);
- // t1.commitTransaction();
- // }
-
- // for (int i = 1; i < NUMBER_OF_TESTS; i++) {
- // String keyC = "c" + i;
- // String valueC = "c" + i;
- // IoTString iKeyC = new IoTString(keyC);
- // IoTString iValueC = new IoTString(valueC);
-
- // String keyCOld = "c" + (i - 1);
- // String valueCOld = "c" + (i - 2);
- // IoTString iKeyCOld = new IoTString(keyCOld);
- // IoTString iValueCOld = new IoTString(valueCOld);
-
-
- // t2.startTransaction();
- // t2.addGuard(new Guard(new IoTString(Guard.createExpression(iKeyCOld, iValueCOld, Guard.Equal))));
- // t2.addKV(iKeyC, iValueC);
- // t2.commitTransaction();
- // }
-
- // for (int i = 1; i < NUMBER_OF_TESTS; i++) {
- // String keyA = "a" + i;
- // String keyD = "d" + i;
- // String valueA = "a" + i;
- // String valueD = "d" + i;
-
- // IoTString iKeyA = new IoTString(keyA);
- // IoTString iKeyD = new IoTString(keyD);
- // IoTString iValueA = new IoTString(valueA);
- // IoTString iValueD = new IoTString(valueD);
-
-
- // String keyAOld = "a" + (i - 1);
- // String keyDOld = "d" + (i - 1);
- // String valueAOld = "a" + (i - 2);
- // String valueDOld = "d" + (i - 2);
- // IoTString iKeyAOld = new IoTString(keyAOld);
- // IoTString iKeyDOld = new IoTString(keyDOld);
- // IoTString iValueAOld = new IoTString(valueAOld);
- // IoTString iValueDOld = new IoTString(valueDOld);
-
-
- // t1.startTransaction();
- // t1.addGuard(new Guard(new IoTString(Guard.createExpression(iKeyAOld, iValueAOld, Guard.Equal))));
- // t1.addKV(iKeyA, iValueA);
- // t1.commitTransaction();
-
- // t2.startTransaction();
- // t2.addGuard(new Guard(new IoTString(Guard.createExpression(iKeyDOld, iValueDOld, Guard.Equal))));
- // t2.addKV(iKeyD, iValueD);
- // t2.commitTransaction();
- // }
-
- // endTime = System.currentTimeMillis();
-