diff --git a/java/src/main/java/org/rocksdb/BackupInfo.java b/java/src/main/java/org/rocksdb/BackupInfo.java index d6cf3c222..48a52a789 100644 --- a/java/src/main/java/org/rocksdb/BackupInfo.java +++ b/java/src/main/java/org/rocksdb/BackupInfo.java @@ -8,7 +8,7 @@ package org.rocksdb; * Instances of this class describe a Backup made by * {@link org.rocksdb.BackupableDB}. */ -public final class BackupInfo { +public class BackupInfo { /** * Package private constructor used to create instances diff --git a/java/src/main/java/org/rocksdb/BackupableDB.java b/java/src/main/java/org/rocksdb/BackupableDB.java index 6a119ee6f..f2646d22a 100644 --- a/java/src/main/java/org/rocksdb/BackupableDB.java +++ b/java/src/main/java/org/rocksdb/BackupableDB.java @@ -13,7 +13,7 @@ import java.util.List; * * @see org.rocksdb.BackupableDBOptions */ -public final class BackupableDB extends RocksDB { +public class BackupableDB extends RocksDB { /** *
Open a {@code BackupableDB} under the specified path. * Note that the backup path should be set properly in the diff --git a/java/src/main/java/org/rocksdb/BackupableDBOptions.java b/java/src/main/java/org/rocksdb/BackupableDBOptions.java index 4a5a7a6af..17a0afc28 100644 --- a/java/src/main/java/org/rocksdb/BackupableDBOptions.java +++ b/java/src/main/java/org/rocksdb/BackupableDBOptions.java @@ -17,7 +17,7 @@ import java.nio.file.Path; * * @see org.rocksdb.BackupableDB */ -public final class BackupableDBOptions extends RocksObject { +public class BackupableDBOptions extends RocksObject { /** *
BackupableDBOptions constructor.
diff --git a/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java b/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java index e046f098b..c3c6309b3 100644 --- a/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java +++ b/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java @@ -9,7 +9,7 @@ package org.rocksdb; * * BlockBasedTable is a RocksDB's default SST file format. */ -public final class BlockBasedTableConfig extends TableFormatConfig { +public class BlockBasedTableConfig extends TableFormatConfig { public BlockBasedTableConfig() { noBlockCache_ = false; diff --git a/java/src/main/java/org/rocksdb/BloomFilter.java b/java/src/main/java/org/rocksdb/BloomFilter.java index 236edb306..67c45d717 100644 --- a/java/src/main/java/org/rocksdb/BloomFilter.java +++ b/java/src/main/java/org/rocksdb/BloomFilter.java @@ -18,7 +18,7 @@ package org.rocksdb; * FilterPolicy (like {@code BloomFilter}) that does not ignore * trailing spaces in keys. */ -public final class BloomFilter extends Filter { +public class BloomFilter extends Filter { private static final int DEFAULT_BITS_PER_KEY = 10; private static final boolean DEFAULT_MODE = true; diff --git a/java/src/main/java/org/rocksdb/Checkpoint.java b/java/src/main/java/org/rocksdb/Checkpoint.java index 0b9a0de88..816eceacf 100644 --- a/java/src/main/java/org/rocksdb/Checkpoint.java +++ b/java/src/main/java/org/rocksdb/Checkpoint.java @@ -9,7 +9,7 @@ package org.rocksdb; * Provides Checkpoint functionality. Checkpoints * provide persistent snapshots of RocksDB databases. */ -public final class Checkpoint extends RocksObject { +public class Checkpoint extends RocksObject { /** * Creates a Checkpoint object to be used for creating open-able diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java b/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java index d4bd23f65..4c0954740 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java @@ -9,7 +9,7 @@ package org.rocksdb; *Describes a column family with a * name and respective Options.
*/ -public final class ColumnFamilyDescriptor { +public class ColumnFamilyDescriptor { /** *Creates a new Column Family using a name and default diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java b/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java index 72db52212..613cb892c 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java @@ -9,7 +9,7 @@ package org.rocksdb; * ColumnFamilyHandle class to hold handles to underlying rocksdb * ColumnFamily Pointers. */ -public final class ColumnFamilyHandle extends RocksObject { +public class ColumnFamilyHandle extends RocksObject { ColumnFamilyHandle(final RocksDB rocksDB, final long nativeHandle) { super(); diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java index d7926a901..84abb4607 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java @@ -14,7 +14,7 @@ import java.util.Properties; * If {@link #dispose()} function is not called, then it will be GC'd automatically * and native resources will be released as part of the process. */ -public final class ColumnFamilyOptions extends RocksObject +public class ColumnFamilyOptions extends RocksObject implements ColumnFamilyOptionsInterface { static { RocksDB.loadLibrary(); diff --git a/java/src/main/java/org/rocksdb/DBOptions.java b/java/src/main/java/org/rocksdb/DBOptions.java index 99543ca99..4e2d5426c 100644 --- a/java/src/main/java/org/rocksdb/DBOptions.java +++ b/java/src/main/java/org/rocksdb/DBOptions.java @@ -14,7 +14,7 @@ import java.util.Properties; * If {@link #dispose()} function is not called, then it will be GC'd automatically * and native resources will be released as part of the process. */ -public final class DBOptions extends RocksObject implements DBOptionsInterface { +public class DBOptions extends RocksObject implements DBOptionsInterface { static { RocksDB.loadLibrary(); } diff --git a/java/src/main/java/org/rocksdb/FlushOptions.java b/java/src/main/java/org/rocksdb/FlushOptions.java index 071835d83..9ddf95f1c 100644 --- a/java/src/main/java/org/rocksdb/FlushOptions.java +++ b/java/src/main/java/org/rocksdb/FlushOptions.java @@ -4,7 +4,7 @@ package org.rocksdb; * FlushOptions to be passed to flush operations of * {@link org.rocksdb.RocksDB}. */ -public final class FlushOptions extends RocksObject { +public class FlushOptions extends RocksObject { /** * Construct a new instance of FlushOptions. diff --git a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java b/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java index c4545b3b5..4a9eaff61 100644 --- a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java @@ -13,7 +13,7 @@ package org.rocksdb; * use the default memtable representation (SkipList) instead * and post a warning in the LOG. */ -public final class HashLinkedListMemTableConfig extends MemTableConfig { +public class HashLinkedListMemTableConfig extends MemTableConfig { public static final long DEFAULT_BUCKET_COUNT = 50000; public static final long DEFAULT_HUGE_PAGE_TLB_SIZE = 0; public static final int DEFAULT_BUCKET_ENTRIES_LOG_THRES = 4096; diff --git a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java b/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java index 48c779118..f6b9461d6 100644 --- a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java @@ -13,7 +13,7 @@ package org.rocksdb; * use the default memtable representation (SkipList) instead * and post a warning in the LOG. */ -public final class HashSkipListMemTableConfig extends MemTableConfig { +public class HashSkipListMemTableConfig extends MemTableConfig { public static final int DEFAULT_BUCKET_COUNT = 1000000; public static final int DEFAULT_BRANCHING_FACTOR = 4; public static final int DEFAULT_HEIGHT = 4; diff --git a/java/src/main/java/org/rocksdb/Options.java b/java/src/main/java/org/rocksdb/Options.java index 64cd9fef5..98e6b19c6 100644 --- a/java/src/main/java/org/rocksdb/Options.java +++ b/java/src/main/java/org/rocksdb/Options.java @@ -12,7 +12,7 @@ package org.rocksdb; * If {@link #dispose()} function is not called, then it will be GC'd automatically * and native resources will be released as part of the process. */ -public final class Options extends RocksObject +public class Options extends RocksObject implements DBOptionsInterface, ColumnFamilyOptionsInterface { static { RocksDB.loadLibrary(); diff --git a/java/src/main/java/org/rocksdb/PlainTableConfig.java b/java/src/main/java/org/rocksdb/PlainTableConfig.java index 09764462d..3a41bea84 100644 --- a/java/src/main/java/org/rocksdb/PlainTableConfig.java +++ b/java/src/main/java/org/rocksdb/PlainTableConfig.java @@ -12,7 +12,7 @@ package org.rocksdb; * *
It also support prefix hash feature.
*/ -public final class PlainTableConfig extends TableFormatConfig { +public class PlainTableConfig extends TableFormatConfig { public static final int VARIABLE_LENGTH = 0; public static final int DEFAULT_BLOOM_BITS_PER_KEY = 10; public static final double DEFAULT_HASH_TABLE_RATIO = 0.75; diff --git a/java/src/main/java/org/rocksdb/ReadOptions.java b/java/src/main/java/org/rocksdb/ReadOptions.java index 288f19e27..a72a6e0d8 100644 --- a/java/src/main/java/org/rocksdb/ReadOptions.java +++ b/java/src/main/java/org/rocksdb/ReadOptions.java @@ -11,7 +11,7 @@ package org.rocksdb; * Note that dispose() must be called before an Options instance * become out-of-scope to release the allocated memory in c++. */ -public final class ReadOptions extends RocksObject { +public class ReadOptions extends RocksObject { public ReadOptions() { super(); newReadOptions(); diff --git a/java/src/main/java/org/rocksdb/RestoreBackupableDB.java b/java/src/main/java/org/rocksdb/RestoreBackupableDB.java index 42032f451..5a3b2fc9a 100644 --- a/java/src/main/java/org/rocksdb/RestoreBackupableDB.java +++ b/java/src/main/java/org/rocksdb/RestoreBackupableDB.java @@ -16,7 +16,7 @@ import java.util.List; * memory in c++. * */ -public final class RestoreBackupableDB extends RocksObject { +public class RestoreBackupableDB extends RocksObject { /** *Construct new estoreBackupableDB instance.
* diff --git a/java/src/main/java/org/rocksdb/RestoreOptions.java b/java/src/main/java/org/rocksdb/RestoreOptions.java index fb61165f2..d98167aeb 100644 --- a/java/src/main/java/org/rocksdb/RestoreOptions.java +++ b/java/src/main/java/org/rocksdb/RestoreOptions.java @@ -12,7 +12,7 @@ package org.rocksdb; * to release the allocated memory in c++. * */ -public final class RestoreOptions extends RocksObject { +public class RestoreOptions extends RocksObject { /** * Constructor * diff --git a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java b/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java index 7a034e6db..611a1231c 100644 --- a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java @@ -3,7 +3,7 @@ package org.rocksdb; /** * The config for skip-list memtable representation. */ -public final class SkipListMemTableConfig extends MemTableConfig { +public class SkipListMemTableConfig extends MemTableConfig { public static final long DEFAULT_LOOKAHEAD = 0; diff --git a/java/src/main/java/org/rocksdb/Snapshot.java b/java/src/main/java/org/rocksdb/Snapshot.java index 8abd0d846..7ef5c383d 100644 --- a/java/src/main/java/org/rocksdb/Snapshot.java +++ b/java/src/main/java/org/rocksdb/Snapshot.java @@ -8,7 +8,7 @@ package org.rocksdb; /** * Snapshot of database */ -public final class Snapshot extends RocksObject { +public class Snapshot extends RocksObject { Snapshot(final long nativeHandle) { super(); nativeHandle_ = nativeHandle; diff --git a/java/src/main/java/org/rocksdb/TransactionLogIterator.java b/java/src/main/java/org/rocksdb/TransactionLogIterator.java index 950b00347..36f7e2cdf 100644 --- a/java/src/main/java/org/rocksdb/TransactionLogIterator.java +++ b/java/src/main/java/org/rocksdb/TransactionLogIterator.java @@ -5,7 +5,7 @@ package org.rocksdb; * One run of the iterator is continuous, i.e. the iterator will stop at the * beginning of any gap in sequences. */ -public final class TransactionLogIterator extends RocksObject { +public class TransactionLogIterator extends RocksObject { /** *An iterator is either positioned at a WriteBatch diff --git a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java b/java/src/main/java/org/rocksdb/VectorMemTableConfig.java index 515ae7166..2703fa124 100644 --- a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/VectorMemTableConfig.java @@ -3,7 +3,7 @@ package org.rocksdb; /** * The config for vector memtable representation. */ -public final class VectorMemTableConfig extends MemTableConfig { +public class VectorMemTableConfig extends MemTableConfig { public static final int DEFAULT_RESERVED_SIZE = 0; /** diff --git a/java/src/main/java/org/rocksdb/WriteOptions.java b/java/src/main/java/org/rocksdb/WriteOptions.java index b1670023e..c27dc9b3c 100644 --- a/java/src/main/java/org/rocksdb/WriteOptions.java +++ b/java/src/main/java/org/rocksdb/WriteOptions.java @@ -11,7 +11,7 @@ package org.rocksdb; * Note that developers should call WriteOptions.dispose() to release the * c++ side memory before a WriteOptions instance runs out of scope. */ -public final class WriteOptions extends RocksObject { +public class WriteOptions extends RocksObject { /** * Construct WriteOptions instance. */ diff --git a/java/src/main/java/org/rocksdb/util/Environment.java b/java/src/main/java/org/rocksdb/util/Environment.java index fdf99c3fa..f65b92a0e 100644 --- a/java/src/main/java/org/rocksdb/util/Environment.java +++ b/java/src/main/java/org/rocksdb/util/Environment.java @@ -1,6 +1,6 @@ package org.rocksdb.util; -public final class Environment { +public class Environment { private static String OS = System.getProperty("os.name").toLowerCase(); private static String ARCH = System.getProperty("os.arch").toLowerCase(); diff --git a/java/src/main/java/org/rocksdb/util/SizeUnit.java b/java/src/main/java/org/rocksdb/util/SizeUnit.java index 600623ba0..8d50cd10e 100644 --- a/java/src/main/java/org/rocksdb/util/SizeUnit.java +++ b/java/src/main/java/org/rocksdb/util/SizeUnit.java @@ -5,7 +5,7 @@ package org.rocksdb.util; -public final class SizeUnit { +public class SizeUnit { public static final long KB = 1024L; public static final long MB = KB * KB; public static final long GB = KB * MB;