Package org.rocksdb

Examples of org.rocksdb.PlainTableConfig


  public static final RocksMemoryResource rocksMemoryResource =
      new RocksMemoryResource();

  @Test
  public void keySize() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setKeySize(5);
    assertThat(plainTableConfig.keySize()).
        isEqualTo(5);
  }
View Full Code Here


        isEqualTo(5);
  }

  @Test
  public void bloomBitsPerKey() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setBloomBitsPerKey(11);
    assertThat(plainTableConfig.bloomBitsPerKey()).
        isEqualTo(11);
  }
View Full Code Here

        isEqualTo(11);
  }

  @Test
  public void hashTableRatio() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setHashTableRatio(0.95);
    assertThat(plainTableConfig.hashTableRatio()).
        isEqualTo(0.95);
  }
View Full Code Here

        isEqualTo(0.95);
  }

  @Test
  public void indexSparseness() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setIndexSparseness(18);
    assertThat(plainTableConfig.indexSparseness()).
        isEqualTo(18);
  }
View Full Code Here

        isEqualTo(18);
  }

  @Test
  public void hugePageTlbSize() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setHugePageTlbSize(1);
    assertThat(plainTableConfig.hugePageTlbSize()).
        isEqualTo(1);
  }
View Full Code Here

        isEqualTo(1);
  }

  @Test
  public void encodingType() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setEncodingType(EncodingType.kPrefix);
    assertThat(plainTableConfig.encodingType()).isEqualTo(
        EncodingType.kPrefix);
  }
View Full Code Here

        EncodingType.kPrefix);
  }

  @Test
  public void fullScanMode() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setFullScanMode(true);
    assertThat(plainTableConfig.fullScanMode()).isTrue()}
View Full Code Here

    plainTableConfig.setFullScanMode(true);
    assertThat(plainTableConfig.fullScanMode()).isTrue()}

  @Test
  public void storeIndexInFile() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setStoreIndexInFile(true);
    assertThat(plainTableConfig.storeIndexInFile()).
        isTrue();
  }
View Full Code Here

  @Test
  public void plainTableConfig() {
    Options opt = null;
    try {
      opt = new Options();
      PlainTableConfig plainTableConfig = new PlainTableConfig();
      opt.setTableFormatConfig(plainTableConfig);
      assertThat(opt.tableFactoryName()).isEqualTo("PlainTable");
    } finally {
      if (opt != null) {
        opt.dispose();
View Full Code Here

TOP

Related Classes of org.rocksdb.PlainTableConfig

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.