本文整理汇总了Java中com.sleepycat.je.DatabaseConfig.getDeferredWrite方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseConfig.getDeferredWrite方法的具体用法?Java DatabaseConfig.getDeferredWrite怎么用?Java DatabaseConfig.getDeferredWrite使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sleepycat.je.DatabaseConfig
的用法示例。
在下文中一共展示了DatabaseConfig.getDeferredWrite方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DatabaseImpl
import com.sleepycat.je.DatabaseConfig; //导入方法依赖的package包/类
/**
* Create a database object for a new database.
*/
public DatabaseImpl(String dbName,
DatabaseId id,
EnvironmentImpl envImpl,
DatabaseConfig dbConfig)
throws DatabaseException {
this.id = id;
this.envImpl = envImpl;
setBtreeComparator(dbConfig.getBtreeComparator(),
dbConfig.getBtreeComparatorByClassName());
setDuplicateComparator(dbConfig.getDuplicateComparator(),
dbConfig.getDuplicateComparatorByClassName());
duplicatesAllowed = dbConfig.getSortedDuplicates();
transactional = dbConfig.getTransactional();
deferredWrite = dbConfig.getDeferredWrite();
maxMainTreeEntriesPerNode = dbConfig.getNodeMaxEntries();
maxDupTreeEntriesPerNode = dbConfig.getNodeMaxDupTreeEntries();
initDefaultSettings();
deleteState = NOT_DELETED;
/*
* The tree needs the env, make sure we assign it before
* allocating the tree.
*/
tree = new Tree(this);
referringHandles = Collections.synchronizedSet(new HashSet());
eofNodeId = Node.getNextNodeId();
/* For error messages only. */
debugDatabaseName = dbName;
}
示例2: DatabaseImpl
import com.sleepycat.je.DatabaseConfig; //导入方法依赖的package包/类
/**
* Create a database object for a new database.
*/
public DatabaseImpl(String dbName,
DatabaseId id,
EnvironmentImpl envImpl,
DatabaseConfig dbConfig)
throws DatabaseException {
this.id = id;
this.envImpl = envImpl;
setBtreeComparator(dbConfig.getBtreeComparator(),
dbConfig.getBtreeComparatorByClassName());
setDuplicateComparator(dbConfig.getDuplicateComparator(),
dbConfig.getDuplicateComparatorByClassName());
duplicatesAllowed = dbConfig.getSortedDuplicates();
transactional = dbConfig.getTransactional();
deferredWrite = dbConfig.getDeferredWrite();
maxMainTreeEntriesPerNode = dbConfig.getNodeMaxEntries();
maxDupTreeEntriesPerNode = dbConfig.getNodeMaxDupTreeEntries();
initDefaultSettings();
deleteState = NOT_DELETED;
/*
* The tree needs the env, make sure we assign it before
* allocating the tree.
*/
tree = new Tree(this);
referringHandles = Collections.synchronizedSet(new HashSet());
eofNodeId = Node.getNextNodeId();
/* For error messages only. */
debugDatabaseName = dbName;
}
示例3: setConfigProperties
import com.sleepycat.je.DatabaseConfig; //导入方法依赖的package包/类
public void setConfigProperties(Locker locker,
String dbName,
DatabaseConfig dbConfig,
EnvironmentImpl envImpl) {
setBtreeComparator(dbConfig.getBtreeComparator(),
dbConfig.getBtreeComparatorByClassName());
setDuplicateComparator(dbConfig.getDuplicateComparator(),
dbConfig.getDuplicateComparatorByClassName());
setTriggers(locker, dbName, dbConfig.getTriggers(),
true /*overridePersistentTriggers*/);
if (dbConfig.getSortedDuplicates()) {
setSortedDuplicates();
}
if (dbConfig.getKeyPrefixing() ||
forceKeyPrefixing) {
setKeyPrefixing();
} else {
clearKeyPrefixing();
}
if (dbConfig.getTemporary()) {
setTemporary();
}
if (envImpl.isReplicated()) {
if (dbConfig.getReplicated()) {
setIsReplicatedBit();
} else {
setNotReplicatedBit();
}
}
transactional = dbConfig.getTransactional();
durableDeferredWrite = dbConfig.getDeferredWrite();
maxTreeEntriesPerNode = dbConfig.getNodeMaxEntries();
}
示例4: getDeferredWrite
import com.sleepycat.je.DatabaseConfig; //导入方法依赖的package包/类
public static boolean getDeferredWrite(DatabaseConfig dbConfig) {
return dbConfig.getDeferredWrite();
}