当前位置: 首页>>代码示例>>Java>>正文


Java DatabaseConfig.getDeferredWrite方法代码示例

本文整理汇总了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;
   }
 
开发者ID:nologic,项目名称:nabs,代码行数:38,代码来源:DatabaseImpl.java

示例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;
   }
 
开发者ID:nologic,项目名称:nabs,代码行数:38,代码来源:DatabaseImpl.java

示例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();
}
 
开发者ID:prat0318,项目名称:dbms,代码行数:40,代码来源:DatabaseImpl.java

示例4: getDeferredWrite

import com.sleepycat.je.DatabaseConfig; //导入方法依赖的package包/类
public static boolean getDeferredWrite(DatabaseConfig dbConfig) {
    return dbConfig.getDeferredWrite();
}
 
开发者ID:nologic,项目名称:nabs,代码行数:4,代码来源:DbCompat.java


注:本文中的com.sleepycat.je.DatabaseConfig.getDeferredWrite方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。