Examples of fillCache()


Examples of org.iq80.leveldb.ReadOptions.fillCache()

  }

  @VisibleForTesting
  DBIterator getDbIterator(boolean fillCache) {
    ReadOptions readOptions = new ReadOptions();
    readOptions.fillCache(fillCache);
    return db.iterator(readOptions);
  }
}
View Full Code Here

Examples of org.iq80.leveldb.ReadOptions.fillCache()

  }

  @VisibleForTesting
  DBIterator getDbIterator(boolean fillCache) {
    ReadOptions readOptions = new ReadOptions();
    readOptions.fillCache(fillCache);
    return db.iterator(readOptions);
  }
}
View Full Code Here

Examples of org.rocksdb.ReadOptions.fillCache()

    try {
      opt = new ReadOptions();
      Random rand = new Random();
      boolean boolValue = rand.nextBoolean();
      opt.setFillCache(boolValue);
      assertThat(opt.fillCache()).isEqualTo(boolValue);
    } finally {
      if (opt != null) {
        opt.dispose();
      }
    }
View Full Code Here

Examples of org.rocksdb.ReadOptions.fillCache()

  @Test
  public void failFillCacheUninitialized(){
    ReadOptions readOptions = setupUninitializedReadOptions(
        exception);
    readOptions.fillCache();
  }

  @Test
  public void failSetTailingUninitialized(){
    ReadOptions readOptions = setupUninitializedReadOptions(
View Full Code Here

Examples of org.rocksdb.ReadOptions.fillCache()

    }

    { // FillCache test
      boolean boolValue = rand.nextBoolean();
      opt.setFillCache(boolValue);
      assert(opt.fillCache() == boolValue);
    }

    { // Tailing test
      boolean boolValue = rand.nextBoolean();
      opt.setTailing(boolValue);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.