Skip to content

Commit

Permalink
Spdb memtable: Fix typo in memtableTest in java (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayulas authored and udi-speedb committed Dec 5, 2023
1 parent 6966051 commit fd98fdd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion java/rocksjni/memtablejni.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jlong Java_org_rocksdb_HashSkipListMemTableConfig_newMemTableFactoryHandle(
/*
* Class: org_rocksdb_HashSpdbMemTableConfig
* Method: newMemTableFactoryHandle
* Signature: (JII)J
*/
jlong Java_org_rocksdb_HashSpdbMemTableConfig_newMemTableFactoryHandle(
JNIEnv* env, jobject /*jobj*/, jlong jbucket_count) {
Expand Down
7 changes: 7 additions & 0 deletions java/src/main/java/org/rocksdb/HashSpdbMemTableConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public HashSpdbMemTableConfig setBucketCount(final long count) {
return this;
}

/**
* @return the number of hash buckets
*/
public long bucketCount() {
return bucketCount_;
}

@Override
protected long newMemTableFactoryHandle() {
return newMemTableFactoryHandle(bucketCount_);
Expand Down
6 changes: 0 additions & 6 deletions java/src/test/java/org/rocksdb/MemTableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ public void hashSpdbMemTable() throws RocksDBException {
assertThat(memTableConfig.bucketCount()).isEqualTo(1000000);
memTableConfig.setBucketCount(2000000);
assertThat(memTableConfig.bucketCount()).isEqualTo(2000000);
assertThat(memTableConfig.height()).isEqualTo(4);
memTableConfig.setHeight(5);
assertThat(memTableConfig.height()).isEqualTo(5);
assertThat(memTableConfig.branchingFactor()).isEqualTo(4);
memTableConfig.setBranchingFactor(6);
assertThat(memTableConfig.branchingFactor()).isEqualTo(6);
options.setMemTableConfig(memTableConfig);
}
}
Expand Down

0 comments on commit fd98fdd

Please sign in to comment.