Example #1
0
 @Parameters
 public static List<Object[]> data() {
   List<Object[]> params = new ArrayList<Object[]>();
   for (boolean singleThreaded : new boolean[] {true, false}) {
     for (boolean heapAllocated : new boolean[] {true, false}) {
       for (boolean saveIndex : new boolean[] {true, false}) {
         File dir = Files.createTempDir();
         HashStoreConfig config =
             new HashStoreConfig(dir)
                 .indexInitialCapacity(32)
                 .segmentSize(50)
                 .checkCrcs(true)
                 .heapAllocateIndex(heapAllocated)
                 .singleThreaded(singleThreaded)
                 .segmentDeletionDelay(0, TimeUnit.MILLISECONDS)
                 .saveIndexOnClose(saveIndex);
         params.add(new Object[] {config});
       }
     }
   }
   return params;
 }