
public class BDBKeyValueStore extends AbstractKeyValueStore implements KeyValueStore
| Constructor and Description |
|---|
BDBKeyValueStore(String databasePath,
String databaseName,
com.sleepycat.je.EnvironmentConfig environmentConfig,
com.sleepycat.je.DatabaseConfig databaseConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction() |
static void |
cleanup(String databasePath) |
void |
clear() |
void |
close() |
void |
commitTransaction() |
boolean |
contains(String key) |
boolean |
contains(String key,
String value) |
void |
delete(String key) |
void |
delete(String key,
String value) |
Iterator<String> |
getAll(String key) |
String |
getDatabaseName() |
String |
getDatabasePath() |
String |
getOne(String key) |
void |
init() |
void |
rollbackTransaction() |
void |
set(String key,
String value) |
boolean |
supportsTransactions() |
count, replaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, replacepublic void init()
throws IOException
init in interface KeyValueStoreIOExceptionpublic void close()
close in interface KeyValueStorepublic void set(String key, String value)
set in interface KeyValueStorepublic String getOne(String key)
getOne in interface KeyValueStoregetOne in class AbstractKeyValueStorepublic Iterator<String> getAll(String key)
getAll in interface KeyValueStorepublic boolean contains(String key)
contains in interface KeyValueStorecontains in class AbstractKeyValueStorepublic boolean contains(String key, String value)
contains in interface KeyValueStorecontains in class AbstractKeyValueStorepublic void delete(String key)
delete in interface KeyValueStoredelete in class AbstractKeyValueStorepublic void delete(String key, String value)
delete in interface KeyValueStorepublic void clear()
clear in interface KeyValueStorepublic boolean supportsTransactions()
supportsTransactions in interface KeyValueStoresupportsTransactions in class AbstractKeyValueStorepublic void beginTransaction()
beginTransaction in interface KeyValueStorebeginTransaction in class AbstractKeyValueStorepublic void commitTransaction()
commitTransaction in interface KeyValueStorecommitTransaction in class AbstractKeyValueStorepublic void rollbackTransaction()
rollbackTransaction in interface KeyValueStorerollbackTransaction in class AbstractKeyValueStorepublic String getDatabasePath()
public String getDatabaseName()
public static void cleanup(String databasePath)
Copyright © 2017. All rights reserved.