From f8e02c7825f089504fc2f96faee42740624a8e4e Mon Sep 17 00:00:00 2001
From: Adam Retter
- * If opened in read write mode every existing column family name must be passed - * within the list to this method.
+ * If opened in read write mode every existing column family name must be + * passed within the list to this method. ** If opened in read-only mode only a subset of existing column families must * be passed to this method.
@@ -189,8 +191,8 @@ public class RocksDB extends RocksObject { * the path to the database using the specified options and db path and a list * of column family names. *- * If opened in read write mode every existing column family name must be passed - * within the list to this method.
+ * If opened in read write mode every existing column family name must be + * passed within the list to this method. ** If opened in read-only mode only a subset of existing column families must * be passed to this method.
@@ -204,7 +206,8 @@ public class RocksDB extends RocksObject { * with new Options instance as underlying native statistics instance does not * use any locks to prevent concurrent updates. *- * ColumnFamily handles are disposed when the RocksDB instance is disposed.
+ * ColumnFamily handles are disposed when the RocksDB instance is disposed. + * * * @param options {@link org.rocksdb.DBOptions} instance. * @param path the path to the rocksdb. @@ -227,12 +230,14 @@ public class RocksDB extends RocksObject { final byte[][] cfNames = new byte[columnFamilyDescriptors.size()][]; final long[] cfOptionHandles = new long[columnFamilyDescriptors.size()]; for (int i = 0; i < columnFamilyDescriptors.size(); i++) { - final ColumnFamilyDescriptor cfDescriptor = columnFamilyDescriptors.get(i); + final ColumnFamilyDescriptor cfDescriptor = columnFamilyDescriptors + .get(i); cfNames[i] = cfDescriptor.columnFamilyName(); cfOptionHandles[i] = cfDescriptor.columnFamilyOptions().nativeHandle_; } - final long[] handles = open(options.nativeHandle_, path, cfNames, cfOptionHandles); + final long[] handles = open(options.nativeHandle_, path, cfNames, + cfOptionHandles); final RocksDB db = new RocksDB(handles[0]); db.storeOptionsInstance(options); @@ -349,12 +354,14 @@ public class RocksDB extends RocksObject { final byte[][] cfNames = new byte[columnFamilyDescriptors.size()][]; final long[] cfOptionHandles = new long[columnFamilyDescriptors.size()]; for (int i = 0; i < columnFamilyDescriptors.size(); i++) { - final ColumnFamilyDescriptor cfDescriptor = columnFamilyDescriptors.get(i); + final ColumnFamilyDescriptor cfDescriptor = columnFamilyDescriptors + .get(i); cfNames[i] = cfDescriptor.columnFamilyName(); cfOptionHandles[i] = cfDescriptor.columnFamilyOptions().nativeHandle_; } - final long[] handles = openROnly(options.nativeHandle_, path, cfNames, cfOptionHandles); + final long[] handles = openROnly(options.nativeHandle_, path, cfNames, + cfOptionHandles); final RocksDB db = new RocksDB(handles[0]); db.storeOptionsInstance(options); @@ -377,21 +384,14 @@ public class RocksDB extends RocksObject { */ public static ListValid property names include: *
Valid property names include: *
Similar to GetProperty(), but only works for a subset of properties whose - * return value is a numerical value. Return the value as long.
+ *Similar to GetProperty(), but only works for a subset of properties + * whose return value is a numerical value. Return the value as long.
* *Note: As the returned property is of type * {@code uint64_t} on C++ side the returning value can be negative @@ -1096,8 +1106,8 @@ public class RocksDB extends RocksObject { } /** - *
Similar to GetProperty(), but only works for a subset of properties whose - * return value is a numerical value. Return the value as long.
+ *Similar to GetProperty(), but only works for a subset of properties + * whose return value is a numerical value. Return the value as long.
* *Note: As the returned property is of type
* {@code uint64_t} on C++ side the returning value can be negative
@@ -1121,8 +1131,8 @@ public class RocksDB extends RocksObject {
*/
public long getLongProperty(final ColumnFamilyHandle columnFamilyHandle,
final String property) throws RocksDBException {
- return getLongProperty(nativeHandle_, columnFamilyHandle.nativeHandle_, property,
- property.length());
+ return getLongProperty(nativeHandle_, columnFamilyHandle.nativeHandle_,
+ property, property.length());
}
/**
@@ -1204,7 +1214,8 @@ public class RocksDB extends RocksObject {
* instance
* @return instance of iterator object.
*/
- public RocksIterator newIterator(final ColumnFamilyHandle columnFamilyHandle) {
+ public RocksIterator newIterator(
+ final ColumnFamilyHandle columnFamilyHandle) {
return new RocksIterator(this, iteratorCF(nativeHandle_,
columnFamilyHandle.nativeHandle_));
}
@@ -1244,7 +1255,8 @@ public class RocksDB extends RocksObject {
* native library.
*/
public List