Package org.rocksdb

Examples of org.rocksdb.ComparatorOptions


  public static final RocksMemoryResource rocksMemoryResource =
      new RocksMemoryResource();

  @Test
  public void comparatorOptions() {
    final ComparatorOptions copt = new ComparatorOptions();

    assertThat(copt).isNotNull();

    { // UseAdaptiveMutex test
      copt.setUseAdaptiveMutex(true);
      assertThat(copt.useAdaptiveMutex()).isTrue();

      copt.setUseAdaptiveMutex(false);
      assertThat(copt.useAdaptiveMutex()).isFalse();
    }

    copt.dispose();
  }
View Full Code Here

TOP

Related Classes of org.rocksdb.ComparatorOptions

Copyright © 2018 www.massapicom. 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.