Exemplo n.º 1
0
 private byte[][] generateRandomSplitKeys(int numKeys) {
   Random random = new Random();
   byte[][] ret = new byte[numKeys][];
   for (int i = 0; i < numKeys; i++) {
     ret[i] =
         PerformanceEvaluation.generateData(random, PerformanceEvaluation.DEFAULT_VALUE_LENGTH);
   }
   return ret;
 }
Exemplo n.º 2
0
 private byte[][] generateRandomStartKeys(int numKeys) {
   Random random = new Random();
   byte[][] ret = new byte[numKeys][];
   // first region start key is always empty
   ret[0] = HConstants.EMPTY_BYTE_ARRAY;
   for (int i = 1; i < numKeys; i++) {
     ret[i] =
         PerformanceEvaluation.generateData(random, PerformanceEvaluation.DEFAULT_VALUE_LENGTH);
   }
   return ret;
 }