MCPcopy Create free account
hub / github.com/bytedance/terarkdb / openReadOnly

Method openReadOnly

java/src/main/java/org/rocksdb/RocksDB.java:318–324  ·  view source on GitHub ↗

The factory constructor of RocksDB that opens a RocksDB instance in Read-Only mode given the path to the database using the default options. @param path the path to the RocksDB. @return a RocksDB instance on success, null if the specified RocksDB can not be opened. @throws Rock

(final String path)

Source from the content-addressed store, hash-verified

316 * native library.
317 */
318 public static RocksDB openReadOnly(final String path)
319 throws RocksDBException {
320 // This allows to use the rocksjni default Options instead of
321 // the c++ one.
322 Options options = new Options();
323 return openReadOnly(options, path);
324 }
325
326 /**
327 * The factory constructor of RocksDB that opens a RocksDB instance in

Callers 7

readOnlyOpenMethod · 0.95
failToWriteInReadOnlyMethod · 0.95

Calls 7

openROnlyMethod · 0.95
storeOptionsInstanceMethod · 0.95
columnFamilyNameMethod · 0.95
columnFamilyOptionsMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45
addMethod · 0.45

Tested by 7

readOnlyOpenMethod · 0.76
failToWriteInReadOnlyMethod · 0.76