diff --git a/java/rocksjni/options.cc b/java/rocksjni/options.cc index 1d1f88f2a..7a76ea2f5 100644 --- a/java/rocksjni/options.cc +++ b/java/rocksjni/options.cc @@ -3843,7 +3843,7 @@ jlong Java_org_rocksdb_Options_blobCompactionReadaheadSize(JNIEnv*, jobject, /* * Class: org_rocksdb_Options * Method: setBlobFileStartingLevel - * Signature: (JJ)V + * Signature: (JI)V */ void Java_org_rocksdb_Options_setBlobFileStartingLevel( JNIEnv*, jobject, jlong jhandle, jint jblob_file_starting_level) { @@ -3854,7 +3854,7 @@ void Java_org_rocksdb_Options_setBlobFileStartingLevel( /* * Class: org_rocksdb_Options * Method: blobFileStartingLevel - * Signature: (J)J + * Signature: (J)I */ jint Java_org_rocksdb_Options_blobFileStartingLevel(JNIEnv*, jobject, jlong jhandle) { @@ -5646,6 +5646,31 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_blobCompactionReadaheadSize( return static_cast(opts->blob_compaction_readahead_size); } +/* + * Class: org_rocksdb_ColumnFamilyOptions + * Method: setBlobFileStartingLevel + * Signature: (JI)V + */ +void Java_org_rocksdb_ColumnFamilyOptions_setBlobFileStartingLevel( + JNIEnv*, jobject, jlong jhandle, jint jblob_file_starting_level) { + auto* opts = + reinterpret_cast(jhandle); + opts->blob_file_starting_level = jblob_file_starting_level; +} + +/* + * Class: org_rocksdb_ColumnFamilyOptions + * Method: blobFileStartingLevel + * Signature: (J)I + */ +jint Java_org_rocksdb_ColumnFamilyOptions_blobFileStartingLevel(JNIEnv*, + jobject, + jlong jhandle) { + auto* opts = + reinterpret_cast(jhandle); + return static_cast(opts->blob_file_starting_level); +} + ///////////////////////////////////////////////////////////////////// // ROCKSDB_NAMESPACE::DBOptions diff --git a/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java b/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java index 59f6995bc..f9f803d97 100644 --- a/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java @@ -762,7 +762,7 @@ public interface AdvancedMutableColumnFamilyOptionsInterface< * Dynamically changeable through * {@link RocksDB#setOptions(ColumnFamilyHandle, MutableColumnFamilyOptions)}. * - * @param setBlobFileStartingLevel the starting level to enable blob files + * @param blobFileStartingLevel the starting level to enable blob files * * @return the reference to the current options. */ diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java index 4bb2a87e9..104ba00c2 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java @@ -1246,7 +1246,7 @@ public class ColumnFamilyOptions extends RocksObject * Dynamically changeable through * {@link RocksDB#setOptions(ColumnFamilyHandle, MutableColumnFamilyOptions)}. * - * @param setBlobFileStartingLevel the starting level to enable blob files + * @param blobFileStartingLevel the starting level to enable blob files * * @return the reference to the current options. */ diff --git a/java/src/test/java/org/rocksdb/BlobOptionsTest.java b/java/src/test/java/org/rocksdb/BlobOptionsTest.java index 528b35eab..7b94702da 100644 --- a/java/src/test/java/org/rocksdb/BlobOptionsTest.java +++ b/java/src/test/java/org/rocksdb/BlobOptionsTest.java @@ -196,7 +196,7 @@ public class BlobOptionsTest { "blob_compaction_readahead_size", "blob_file_starting_level"}); assertThat(options.getValues()) .isEqualTo(new String[] { - "false", "4096", "2048", "LZ4_COMPRESSION", "false", "0.91", "0.96", "1024"}); + "false", "4096", "2048", "LZ4_COMPRESSION", "false", "0.91", "0.96", "1024", "0"}); } /**