Package org.rocksdb

Examples of org.rocksdb.ReadOptions.dispose()


      }
      if (options != null) {
        options.dispose();
      }
      if (readOptions != null) {
        readOptions.dispose();
      }
    }
  }
}
View Full Code Here


      boolean boolValue = rand.nextBoolean();
      opt.setVerifyChecksums(boolValue);
      assertThat(opt.verifyChecksums()).isEqualTo(boolValue);
    } finally {
      if (opt != null) {
        opt.dispose();
      }
    }
  }

  @Test
View Full Code Here

      boolean boolValue = rand.nextBoolean();
      opt.setFillCache(boolValue);
      assertThat(opt.fillCache()).isEqualTo(boolValue);
    } finally {
      if (opt != null) {
        opt.dispose();
      }
    }
  }

  @Test
View Full Code Here

      boolean boolValue = rand.nextBoolean();
      opt.setTailing(boolValue);
      assertThat(opt.tailing()).isEqualTo(boolValue);
    } finally {
      if (opt != null) {
        opt.dispose();
      }
    }
  }

  @Test
View Full Code Here

      opt = new ReadOptions();
      opt.setSnapshot(null);
      assertThat(opt.snapshot()).isNull();
    } finally {
      if (opt != null) {
        opt.dispose();
      }
    }
  }

  @Test
View Full Code Here

  }

  private ReadOptions setupUninitializedReadOptions(
      ExpectedException exception) {
    ReadOptions readOptions = new ReadOptions();
    readOptions.dispose();
    exception.expect(AssertionError.class);
    return readOptions;
  }
}
View Full Code Here

      boolean boolValue = rand.nextBoolean();
      opt.setTailing(boolValue);
      assert(opt.tailing() == boolValue);
    }

    opt.dispose();
    System.out.println("Passed ReadOptionsTest");
  }
}
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.