diff --git a/java/src/main/java/org/rocksdb/DBOptionsInterface.java b/java/src/main/java/org/rocksdb/DBOptionsInterface.java index a3a71b2b7e..a1cf178c1a 100644 --- a/java/src/main/java/org/rocksdb/DBOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/DBOptionsInterface.java @@ -519,7 +519,10 @@ public interface DBOptionsInterface { * * @param limit scan count limit * @return the instance of the current Object. + * + * @deprecated This function is depreciated. */ + @Deprecated Object setTableCacheRemoveScanCountLimit(int limit); /** @@ -532,7 +535,10 @@ public interface DBOptionsInterface { * order. * * @return scan count limit + * + * @deprecated This function is depreciated. */ + @Deprecated int tableCacheRemoveScanCountLimit(); /** diff --git a/java/src/test/java/org/rocksdb/DBOptionsTest.java b/java/src/test/java/org/rocksdb/DBOptionsTest.java index 9dab559559..5f8a8e34ca 100644 --- a/java/src/test/java/org/rocksdb/DBOptionsTest.java +++ b/java/src/test/java/org/rocksdb/DBOptionsTest.java @@ -367,22 +367,6 @@ public class DBOptionsTest { } } - @Test - public void tableCacheRemoveScanCountLimit() { - DBOptions opt = null; - try { - opt = new DBOptions(); - int intValue = rand.nextInt(); - opt.setTableCacheRemoveScanCountLimit(intValue); - assertThat(opt.tableCacheRemoveScanCountLimit()). - isEqualTo(intValue); - } finally { - if (opt != null) { - opt.dispose(); - } - } - } - @Test public void walSizeLimitMB() { DBOptions opt = null; diff --git a/java/src/test/java/org/rocksdb/OptionsTest.java b/java/src/test/java/org/rocksdb/OptionsTest.java index 97da9cfb1a..0c12be767f 100644 --- a/java/src/test/java/org/rocksdb/OptionsTest.java +++ b/java/src/test/java/org/rocksdb/OptionsTest.java @@ -796,22 +796,6 @@ public class OptionsTest { } } - @Test - public void tableCacheRemoveScanCountLimit() { - Options opt = null; - try { - opt = new Options(); - int intValue = rand.nextInt(); - opt.setTableCacheRemoveScanCountLimit(intValue); - assertThat(opt.tableCacheRemoveScanCountLimit()). - isEqualTo(intValue); - } finally { - if (opt != null) { - opt.dispose(); - } - } - } - @Test public void walSizeLimitMB() { Options opt = null;