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)
| 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 |