Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/leveldbjni/v1.21' into batch/v0.12
Browse files Browse the repository at this point in the history
# Conflicts:
#	leveldb-api/src/main/java/org/iq80/leveldb/Options.java
  • Loading branch information
halibobo1205 committed Jul 23, 2021
2 parents 18b1185 + 4e6a820 commit 3a70c64
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions leveldb-api/src/main/java/org/iq80/leveldb/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Options
private DBComparator comparator;
private Logger logger;
private long cacheSize;
private long bitsPerKey;

private int maxBatchSize = 52_000;

Expand Down Expand Up @@ -181,6 +182,17 @@ public Options paranoidChecks(boolean paranoidChecks)
return this;
}

public long bitsPerKey()
{
return cacheSize;
}

public Options bitsPerKey(long bitsPerKey)
{
this.bitsPerKey = bitsPerKey;
return this;
}

public int maxBatchSize()
{
return maxBatchSize;
Expand Down

0 comments on commit 3a70c64

Please sign in to comment.