Skip to content

Commit

Permalink
Merge pull request #9 from stefan-zobel/9.2.fb
Browse files Browse the repository at this point in the history
Merge 9.2.1
  • Loading branch information
stefan-zobel authored May 26, 2024
2 parents e3cc518 + 06d4d2f commit 9fee341
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 2 deletions.
Binary file added bin/9.2.1/librocksdbjni-linux64.so
Binary file not shown.
Binary file added bin/9.2.1/librocksdbjni-osx-x86_64.jnilib
Binary file not shown.
Binary file added bin/9.2.1/librocksdbjni-win64.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.sourceforge.streamsupport</groupId>
<artifactId>schwefel</artifactId>
<packaging>jar</packaging>
<version>9.1.1.1</version>
<version>9.2.1.1-SNAPSHOT</version>
<name>schwefel</name>
<description>A dead simple RocksDB Java wrapper</description>
<url>https://github.com/stefan-zobel/schwefel/</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/rocksdb/BlockBasedTableConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public BlockBasedTableConfig() {
indexBlockRestartInterval = 1;
metadataBlockSize = 4096;
partitionFilters = false;
optimizeFiltersForMemory = false;
optimizeFiltersForMemory = true;
useDeltaEncoding = true;
filterPolicy = null;
wholeKeyFiltering = true;
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/rocksdb/PerfContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,15 @@ public long getNumberAsyncSeek() {
return getNumberAsyncSeek(nativeHandle_);
}

@Override
public String toString() {
return toString(true);
}

public String toString(final boolean excludeZeroCounters) {
return toString(nativeHandle_, excludeZeroCounters);
}

@Override
protected void disposeInternal(long handle) {
// Nothing to do. Perf context is valid for all the time of application is running.
Expand Down Expand Up @@ -764,4 +773,6 @@ protected void disposeInternal(long handle) {
private native long getEncryptDataNanos(long nativeHandle_);
private native long getDecryptDataNanos(long nativeHandle_);
private native long getNumberAsyncSeek(long nativeHandle_);

private native String toString(final long nativeHandle, final boolean excludeZeroCounters);
}
Binary file modified src/main/resources/librocksdbjni-linux64.so
Binary file not shown.
Binary file modified src/main/resources/librocksdbjni-osx-x86_64.jnilib
Binary file not shown.
Binary file modified src/main/resources/librocksdbjni-win64.dll
Binary file not shown.

0 comments on commit 9fee341

Please sign in to comment.