From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/java/com/sleepycat/db/DatabaseConfig.html | 5940 +++++++++++------------- 1 file changed, 2612 insertions(+), 3328 deletions(-) (limited to 'docs/java/com/sleepycat/db/DatabaseConfig.html') diff --git a/docs/java/com/sleepycat/db/DatabaseConfig.html b/docs/java/com/sleepycat/db/DatabaseConfig.html index 28a1efde..2c3df53e 100644 --- a/docs/java/com/sleepycat/db/DatabaseConfig.html +++ b/docs/java/com/sleepycat/db/DatabaseConfig.html @@ -1,1253 +1,1126 @@ - - - - - -DatabaseConfig (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.db -
-Class DatabaseConfig

-
-java.lang.Object
-  extended by com.sleepycat.db.DatabaseConfig
-
-
-
All Implemented Interfaces:
Cloneable
-
-
-
Direct Known Subclasses:
SecondaryConfig
-
-
-
-
public class DatabaseConfig
extends Object
implements Cloneable
- - -

-Specify the attributes of a database. -

- -

-


- -

+

+
com.sleepycat.db
+

Class DatabaseConfig

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Cloneable
    +
    +
    +
    Direct Known Subclasses:
    +
    SecondaryConfig
    +
    +
    +
    +
    public class DatabaseConfig
    +extends java.lang.Object
    +implements java.lang.Cloneable
    +
    Specify the attributes of a database.
    +
  • +
+
+
+
    +
  • - - - - - - - - - - -
    -Field Summary
    -static DatabaseConfigDEFAULT - -
    -          An instance created using the default constructor is initialized - with the system's default settings.
    -  +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static DatabaseConfigDEFAULT +
      An instance created using the default constructor is initialized + with the system's default settings.
      +
      +
    • +
    - - - - - - - - - -
    -Constructor Summary
    DatabaseConfig() - -
    -          An instance created using the default constructor is initialized with - the system's default settings.
    -  +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DatabaseConfig() +
      An instance created using the default constructor is initialized with + the system's default settings.
      +
      +
    • +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
    -Method Summary
    - DatabaseConfigcloneConfig() - -
    -          Returns a copy of this configuration object.
    - booleangetAllowCreate() - -
    -          Return true if the Environment.openDatabase method is configured - to create the database if it does not already exist.
    - ComparatorgetBtreeComparator() - -
    -          Return the custom Comparator used for btree keys.
    - BtreeCompressorgetBtreeCompressor() - -
    -          Get the Btree compression callbacks.
    - intgetBtreeMinKey() - -
    -          Return the minimum number of key/data pairs intended to be stored - on any single Btree leaf page.
    - BtreePrefixCalculatorgetBtreePrefixCalculator() - -
    -          Return the Btree prefix callback.
    - booleangetBtreeRecordNumbers() - -
    -          Return true if the Btree is configured to support retrieval by record number.
    - intgetByteOrder() - -
    -          Return the database byte order; a byte order of 4,321 indicates a +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      DatabaseConfigcloneConfig() +
      Returns a copy of this configuration object.
      +
      booleangetAllowCreate() +
      Return true if the Environment.openDatabase method is configured + to create the database if it does not already exist.
      +
      java.io.FilegetBlobDir() +
      Returns the path of a directory where blobs are stored.
      +
      intgetBlobThreshold() +
      Return the threshold value in bytes beyond which data items are + stored as blobs.
      +
      java.util.ComparatorgetBtreeComparator() +
      Return the custom Comparator used for btree keys.
      +
      BtreeCompressorgetBtreeCompressor() +
      Get the Btree compression callbacks.
      +
      intgetBtreeMinKey() +
      Return the minimum number of key/data pairs intended to be stored + on any single Btree leaf page.
      +
      BtreePrefixCalculatorgetBtreePrefixCalculator() +
      Return the Btree prefix callback.
      +
      booleangetBtreeRecordNumbers() +
      Return true if the Btree is configured to support retrieval by record number.
      +
      intgetByteOrder() +
      Return the database byte order; a byte order of 4,321 indicates a big endian order, and a byte order of 1,234 indicates a little - endian order.
      - booleangetByteSwapped() - -
      -          Return if the underlying database files were created on an architecture - of the same byte order as the current one.
      - intgetCacheCount() - -
      -          Return the number of shared memory buffer pools, that is, the number - of caches.
      - longgetCacheSize() - -
      -          Return the size of the shared memory buffer pool, that is, the cache.
      - booleangetChecksum() - -
      -          Return true if the database environment is configured to do checksum + endian order. +
      booleangetByteSwapped() +
      Return if the underlying database files were created on an architecture + of the same byte order as the current one.
      +
      intgetCacheCount() +
      Return the number of shared memory buffer pools, that is, the number + of caches.
      +
      longgetCacheSize() +
      Return the size of the shared memory buffer pool, that is, the cache.
      +
      booleangetChecksum() +
      Return true if the database environment is configured to do checksum verification of pages read into the cache from the backing - filestore.
      - FilegetCreateDir() - -
      -          Return the directory a database will/has been created in or looked for.
      - booleangetDirtyRead() - -
      -          Deprecated. This has been replaced by getReadUncommitted() to conform to ANSI - database isolation terminology.
      - ComparatorgetDuplicateComparator() - -
      -          Return the duplicate data item comparison callback.
      - booleangetEncrypted() - -
      -          Return true if the database has been configured to perform encryption.
      - ErrorHandlergetErrorHandler() - -
      -          Return the function to be called if an error occurs.
      - StringgetErrorPrefix() - -
      -          Return the prefix string that appears before error messages.
      - OutputStreamgetErrorStream() - -
      -          Return the an OutputStream for displaying error messages.
      - booleangetExclusiveCreate() - -
      -          Return true if the Environment.openDatabase method is configured - to fail if the database already exists.
      - FeedbackHandlergetFeedbackHandler() - -
      -          Return the object's methods to be called to provide feedback.
      - ComparatorgetHashComparator() - -
      -          Return the Comparator used to compare keys in a Hash database.
      - HashergetHasher() - -
      -          Return the database-specific hash function.
      - intgetHashFillFactor() - -
      -          Return the hash table density.
      - intgetHashNumElements() - -
      -          Return the estimate of the final size of the hash table.
      - longgetHeapRegionSize() - -
      -          Return the number of pages in a region of the database.
      - longgetHeapsize() - -
      -          Return the maximum on-disk database file size.
      - MessageHandlergetMessageHandler() - -
      -          Return the function to be called with an informational message.
      - OutputStreamgetMessageStream() - -
      -          Return the an OutputStream for displaying informational messages.
      - longgetMode() - -
      -          Return the mode used to create files.
      - booleangetMultiversion() - -
      -          Return true if the database is configured for multiversion concurrency control.
      - booleangetNoMMap() - -
      -          Return true if the library is configured to not map this database into - memory.
      - BooleangetNoWaitDbExclusiveLock() - -
      -          Return whether the Database handle is -configured to obtain a write lock on the entire database.
      - intgetPageSize() - -
      -          Return the size of the pages used to hold items in the database, in bytes.
      - PanicHandlergetPanicHandler() - -
      -          Return the function to be called if the database environment panics.
      - File[]getPartitionDirs() - -
      -          Return the array of directories the database extents should be created in or -looked for.
      - PartitionHandlergetPartitionHandler() - -
      -          Return the function to be called to determine which partition a key resides in.
      - DatabaseEntrygetPartitionKeys() - -
      -          Return the array of keys the database is configured to partition with.
      - intgetPartitionParts() - -
      -          Return the number of partitions the database is configured for.
      - CacheFilePrioritygetPriority() - -
      -          Return the the cache priority for pages referenced by this handle.
      - intgetQueueExtentSize() - -
      -          Return the size of the extents used to hold pages in a Queue database, - specified as a number of pages.
      - booleangetQueueInOrder() - -
      -          Return true if the Database.consume method is configured to return + filestore. +
      java.io.FilegetCreateDir() +
      Return the directory a database will/has been created in or looked for.
      +
      booleangetDirtyRead() +
      Deprecated.  +
      This has been replaced by getReadUncommitted() to conform to ANSI + database isolation terminology.
      +
      +
      java.util.ComparatorgetDuplicateComparator() +
      Return the duplicate data item comparison callback.
      +
      booleangetEncrypted() +
      Return true if the database has been configured to perform encryption.
      +
      ErrorHandlergetErrorHandler() +
      Return the function to be called if an error occurs.
      +
      java.lang.StringgetErrorPrefix() +
      Return the prefix string that appears before error messages.
      +
      java.io.OutputStreamgetErrorStream() +
      Return the an OutputStream for displaying error messages.
      +
      booleangetExclusiveCreate() +
      Return true if the Environment.openDatabase method is configured + to fail if the database already exists.
      +
      FeedbackHandlergetFeedbackHandler() +
      Return the object's methods to be called to provide feedback.
      +
      java.util.ComparatorgetHashComparator() +
      Return the Comparator used to compare keys in a Hash database.
      +
      HashergetHasher() +
      Return the database-specific hash function.
      +
      intgetHashFillFactor() +
      Return the hash table density.
      +
      intgetHashNumElements() +
      Return the estimate of the final size of the hash table.
      +
      longgetHeapRegionSize() +
      Return the number of pages in a region of the database.
      +
      longgetHeapsize() +
      Return the maximum on-disk database file size.
      +
      MessageHandlergetMessageHandler() +
      Return the function to be called with an informational message.
      +
      java.io.OutputStreamgetMessageStream() +
      Return the an OutputStream for displaying informational messages.
      +
      longgetMode() +
      Return the mode used to create files.
      +
      booleangetMultiversion() +
      Return true if the database is configured for multiversion concurrency control.
      +
      booleangetNoMMap() +
      Return true if the library is configured to not map this database into + memory.
      +
      java.lang.BooleangetNoWaitDbExclusiveLock() +
      Return whether the Database handle is +configured to obtain a write lock on the entire database.
      +
      intgetPageSize() +
      Return the size of the pages used to hold items in the database, in bytes.
      +
      PanicHandlergetPanicHandler() +
      Return the function to be called if the database environment panics.
      +
      java.io.File[]getPartitionDirs() +
      Return the array of directories the database extents should be created in or +looked for.
      +
      PartitionHandlergetPartitionHandler() +
      Return the function to be called to determine which partition a key resides in.
      +
      DatabaseEntrygetPartitionKeys() +
      Return the array of keys the database is configured to partition with.
      +
      intgetPartitionParts() +
      Return the number of partitions the database is configured for.
      +
      CacheFilePrioritygetPriority() +
      Return the the cache priority for pages referenced by this handle.
      +
      intgetQueueExtentSize() +
      Return the size of the extents used to hold pages in a Queue database, + specified as a number of pages.
      +
      booleangetQueueInOrder() +
      Return true if the Database.consume method is configured to return key/data pairs in order, always returning the key/data item from the - head of the queue.
      - booleangetReadOnly() - -
      -          Return true if the database is configured in read-only mode.
      - booleangetReadUncommitted() - -
      -          Return true if the database is configured to support read uncommitted.
      - intgetRecordDelimiter() - -
      -          Return the delimiting byte used to mark the end of a record in the - backing source file for the Recno access method.
      - intgetRecordLength() - -
      -          Return the database record length, in bytes.
      - RecordNumberAppendergetRecordNumberAppender() - -
      -          Return the function to call after the record number has been - selected but before the data has been stored into the database.
      - intgetRecordPad() - -
      -          Return the padding character for short, fixed-length records for the - Queue and Recno access methods.
      - FilegetRecordSource() - -
      -          Return the name of an underlying flat text database file that is - read to initialize a transient record number index.
      - booleangetRenumbering() - -
      -          Return true if the logical record numbers are mutable, and change as - records are added to and deleted from the database.
      - booleangetReverseSplitOff() - -
      -          Return true if the Btree has been configured to not do reverse splits.
      - booleangetSnapshot() - -
      -          Return true if the any specified backing source file will be read in its - entirety when the database is opened.
      - booleangetSortedDuplicates() - -
      -          Return true if the database is configured to support sorted duplicate data - items.
      - booleangetTransactional() - -
      -          Return true if the database open is enclosed within a transaction.
      - booleangetTransactionNotDurable() - -
      -          Return true if the database environment is configured to not write log - records for this database.
      - booleangetTruncate() - -
      -          Return true if the database has been configured to be physically truncated + head of the queue. +
      booleangetReadOnly() +
      Return true if the database is configured in read-only mode.
      +
      booleangetReadUncommitted() +
      Return true if the database is configured to support read uncommitted.
      +
      intgetRecordDelimiter() +
      Return the delimiting byte used to mark the end of a record in the + backing source file for the Recno access method.
      +
      intgetRecordLength() +
      Return the database record length, in bytes.
      +
      RecordNumberAppendergetRecordNumberAppender() +
      Return the function to call after the record number has been + selected but before the data has been stored into the database.
      +
      intgetRecordPad() +
      Return the padding character for short, fixed-length records for the + Queue and Recno access methods.
      +
      java.io.FilegetRecordSource() +
      Return the name of an underlying flat text database file that is + read to initialize a transient record number index.
      +
      booleangetRenumbering() +
      Return true if the logical record numbers are mutable, and change as + records are added to and deleted from the database.
      +
      booleangetReverseSplitOff() +
      Return true if the Btree has been configured to not do reverse splits.
      +
      booleangetSnapshot() +
      Return true if the any specified backing source file will be read in its + entirety when the database is opened.
      +
      booleangetSortedDuplicates() +
      Return true if the database is configured to support sorted duplicate data + items.
      +
      booleangetTransactional() +
      Return true if the database open is enclosed within a transaction.
      +
      booleangetTransactionNotDurable() +
      Return true if the database environment is configured to not write log + records for this database.
      +
      booleangetTruncate() +
      Return true if the database has been configured to be physically truncated by truncating the underlying file, discarding all previous databases - it might have held.
      - DatabaseTypegetType() - -
      -          Return the type of the database.
      - booleangetUnsortedDuplicates() - -
      -          Return true if the database is configured to support duplicate data items.
      - voidsetAllowCreate(boolean allowCreate) - -
      -          Configure the Environment.openDatabase method to create - the database if it does not already exist.
      - voidsetBtreeComparator(Comparator btreeComparator) - -
      -          By default, a byte by byte lexicographic comparison is used for - btree keys.
      - voidsetBtreeCompressor(BtreeCompressor btreeCompressor) - -
      -          Set the Btree compression callbacks.
      - voidsetBtreeMinKey(int btMinKey) - -
      -          Set the minimum number of key/data pairs intended to be stored on any - single Btree leaf page.
      - voidsetBtreePrefixCalculator(BtreePrefixCalculator btreePrefixCalculator) - -
      -          Set the Btree prefix callback.
      - voidsetBtreeRecordNumbers(boolean btreeRecordNumbers) - -
      -          Configure the Btree to support retrieval by record number.
      - voidsetByteOrder(int byteOrder) - -
      -          Set the byte order for integers in the stored database metadata.
      - voidsetCacheCount(int cacheCount) - -
      -          Set the number of shared memory buffer pools, that is, the number of -caches.
      - voidsetCacheSize(long cacheSize) - -
      -          Set the size of the shared memory buffer pool, that is, the size of the -cache.
      - voidsetChecksum(boolean checksum) - -
      -          Configure the database environment to do checksum verification of - pages read into the cache from the backing filestore.
      - voidsetCreateDir(File createDir) - -
      -          Specify which directory a database should be created in or looked for.
      - voidsetDirtyRead(boolean dirtyRead) - -
      -          Deprecated. This has been replaced by setReadUncommitted(boolean) to conform to ANSI - database isolation terminology.
      - voidsetDuplicateComparator(Comparator duplicateComparator) - -
      -          Set the duplicate data item comparison callback.
      - voidsetEncrypted(String password) - -
      -          Set the password used to perform encryption and decryption.
      - voidsetErrorHandler(ErrorHandler errorHandler) - -
      -          Set the function to be called if an error occurs.
      - voidsetErrorPrefix(String errorPrefix) - -
      -          Set the prefix string that appears before error messages.
      - voidsetErrorStream(OutputStream errorStream) - -
      -          Set an OutputStream for displaying error messages.
      - voidsetExclusiveCreate(boolean exclusiveCreate) - -
      -          Configure the Environment.openDatabase method to fail if - the database already exists.
      - voidsetFeedbackHandler(FeedbackHandler feedbackHandler) - -
      -          Set an object whose methods are called to provide feedback.
      - voidsetHashComparator(Comparator hashComparator) - -
      -          Set the Hash key comparison function.
      - voidsetHasher(Hasher hasher) - -
      -          Set a database-specific hash function.
      - voidsetHashFillFactor(int hashFillFactor) - -
      -          Set the desired density within the hash table.
      - voidsetHashNumElements(int hashNumElements) - -
      -          Set an estimate of the final size of the hash table.
      - voidsetHeapRegionSize(int npages) - -
      -          Sets the number of pages in a region of a database configured to use - the Heap access method.
      - voidsetHeapsize(long bytes) - -
      -          Set the maximum on-disk database file size used by a database configured to - use the Heap access method.
      - voidsetMessageHandler(MessageHandler messageHandler) - -
      -          Set a function to be called with an informational message.
      - voidsetMessageStream(OutputStream messageStream) - -
      -          Set an OutputStream for displaying informational messages.
      - voidsetMode(int mode) - -
      -          On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files + it might have held. +
      DatabaseTypegetType() +
      Return the type of the database.
      +
      booleangetUnsortedDuplicates() +
      Return true if the database is configured to support duplicate data items.
      +
      voidsetAllowCreate(boolean allowCreate) +
      Configure the Environment.openDatabase method to create + the database if it does not already exist.
      +
      voidsetBlobDir(java.io.File dir) +
      Sets the path of a directory where blobs are stored.
      +
      voidsetBlobThreshold(int value) +
      Set the size in bytes which is used to determine when a data item will be + stored as a blob.
      +
      voidsetBtreeComparator(java.util.Comparator btreeComparator) +
      By default, a byte by byte lexicographic comparison is used for + btree keys.
      +
      voidsetBtreeCompressor(BtreeCompressor btreeCompressor) +
      Set the Btree compression callbacks.
      +
      voidsetBtreeMinKey(int btMinKey) +
      Set the minimum number of key/data pairs intended to be stored on any + single Btree leaf page.
      +
      voidsetBtreePrefixCalculator(BtreePrefixCalculator btreePrefixCalculator) +
      Set the Btree prefix callback.
      +
      voidsetBtreeRecordNumbers(boolean btreeRecordNumbers) +
      Configure the Btree to support retrieval by record number.
      +
      voidsetByteOrder(int byteOrder) +
      Set the byte order for integers in the stored database metadata.
      +
      voidsetCacheCount(int cacheCount) +
      Set the number of shared memory buffer pools, that is, the number of +caches.
      +
      voidsetCacheSize(long cacheSize) +
      Set the size of the shared memory buffer pool, that is, the size of the +cache.
      +
      voidsetChecksum(boolean checksum) +
      Configure the database environment to do checksum verification of + pages read into the cache from the backing filestore.
      +
      voidsetCreateDir(java.io.File createDir) +
      Specify which directory a database should be created in or looked for.
      +
      voidsetDirtyRead(boolean dirtyRead) +
      Deprecated.  +
      This has been replaced by setReadUncommitted(boolean) to conform to ANSI + database isolation terminology.
      +
      +
      voidsetDuplicateComparator(java.util.Comparator duplicateComparator) +
      Set the duplicate data item comparison callback.
      +
      voidsetEncrypted(java.lang.String password) +
      Set the password used to perform encryption and decryption.
      +
      voidsetErrorHandler(ErrorHandler errorHandler) +
      Set the function to be called if an error occurs.
      +
      voidsetErrorPrefix(java.lang.String errorPrefix) +
      Set the prefix string that appears before error messages.
      +
      voidsetErrorStream(java.io.OutputStream errorStream) +
      Set an OutputStream for displaying error messages.
      +
      voidsetExclusiveCreate(boolean exclusiveCreate) +
      Configure the Environment.openDatabase method to fail if + the database already exists.
      +
      voidsetFeedbackHandler(FeedbackHandler feedbackHandler) +
      Set an object whose methods are called to provide feedback.
      +
      voidsetHashComparator(java.util.Comparator hashComparator) +
      Set the Hash key comparison function.
      +
      voidsetHasher(Hasher hasher) +
      Set a database-specific hash function.
      +
      voidsetHashFillFactor(int hashFillFactor) +
      Set the desired density within the hash table.
      +
      voidsetHashNumElements(int hashNumElements) +
      Set an estimate of the final size of the hash table.
      +
      voidsetHeapRegionSize(int npages) +
      Sets the number of pages in a region of a database configured to use + the Heap access method.
      +
      voidsetHeapsize(long bytes) +
      Set the maximum on-disk database file size used by a database configured to + use the Heap access method.
      +
      voidsetMessageHandler(MessageHandler messageHandler) +
      Set a function to be called with an informational message.
      +
      voidsetMessageStream(java.io.OutputStream messageStream) +
      Set an OutputStream for displaying informational messages.
      +
      voidsetMode(int mode) +
      On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files created by the database open are created with mode mode (as described in the chmod(2) manual page) and modified by the process' umask value at the time of creation (see the - umask(2) manual page).
      - voidsetMultiversion(boolean multiversion) - -
      -          Configured the database with support for multiversion concurrency control.
      - voidsetNoMMap(boolean noMMap) - -
      -          Configure the library to not map this database into memory.
      - voidsetNoWaitDbExclusiveLock(Boolean noWaitDbExclLock) - -
      -          Configure the Database handle to obtain a -write lock on the entire database.
      - voidsetPageSize(int pageSize) - -
      -          Set the size of the pages used to hold items in the database, in bytes.
      - voidsetPanicHandler(PanicHandler panicHandler) - -
      -          Set the function to be called if the database environment panics.
      - voidsetPartitionByCallback(int parts, - PartitionHandler partitionHandler) - -
      -          Enable or disable database partitioning, and set the callback that will -be used for the partitioning.
      - voidsetPartitionByRange(int parts, - MultipleDataEntry keys) - -
      -          Enable or disable database partitioning, and set key ranges that will be - used for the partitioning.
      - voidsetPartitionDirs(File[] dirs) - -
      -          Specify the array of directories the database extents should be created in or -looked for.
      - voidsetPriority(CacheFilePriority priority) - -
      -          Set the cache priority for pages referenced by the DB handle.
      - voidsetQueueExtentSize(int queueExtentSize) - -
      -          Set the size of the extents used to hold pages in a Queue database, - specified as a number of pages.
      - voidsetQueueInOrder(boolean queueInOrder) - -
      -          Configure Database.consume to return key/data pairs in + umask(2) manual page). +
      voidsetMsgfile(java.io.File file) +
      Sets the path of a file to store statistical information.
      +
      voidsetMultiversion(boolean multiversion) +
      Configured the database with support for multiversion concurrency control.
      +
      voidsetNoMMap(boolean noMMap) +
      Configure the library to not map this database into memory.
      +
      voidsetNoWaitDbExclusiveLock(java.lang.Boolean noWaitDbExclLock) +
      Configure the Database handle to obtain a +write lock on the entire database.
      +
      voidsetPageSize(int pageSize) +
      Set the size of the pages used to hold items in the database, in bytes.
      +
      voidsetPanicHandler(PanicHandler panicHandler) +
      Set the function to be called if the database environment panics.
      +
      voidsetPartitionByCallback(int parts, + PartitionHandler partitionHandler) +
      Enable or disable database partitioning, and set the callback that will +be used for the partitioning.
      +
      voidsetPartitionByRange(int parts, + MultipleDataEntry keys) +
      Enable or disable database partitioning, and set key ranges that will be + used for the partitioning.
      +
      voidsetPartitionDirs(java.io.File[] dirs) +
      Specify the array of directories the database extents should be created in or +looked for.
      +
      voidsetPriority(CacheFilePriority priority) +
      Set the cache priority for pages referenced by the DB handle.
      +
      voidsetQueueExtentSize(int queueExtentSize) +
      Set the size of the extents used to hold pages in a Queue database, + specified as a number of pages.
      +
      voidsetQueueInOrder(boolean queueInOrder) +
      Configure Database.consume to return key/data pairs in order, always returning the key/data item from the head of the - queue.
      - voidsetReadOnly(boolean readOnly) - -
      -          Configure the database in read-only mode.
      - voidsetReadUncommitted(boolean readUncommitted) - -
      -          Configure the database to support read uncommitted.
      - voidsetRecordDelimiter(int recordDelimiter) - -
      -          Set the delimiting byte used to mark the end of a record in the backing - source file for the Recno access method.
      - voidsetRecordLength(int recordLength) - -
      -          Specify the database record length, in bytes.
      - voidsetRecordNumberAppender(RecordNumberAppender recnoAppender) - -
      -          Configure Database.append to call the function after the + queue. +
      voidsetReadOnly(boolean readOnly) +
      Configure the database in read-only mode.
      +
      voidsetReadUncommitted(boolean readUncommitted) +
      Configure the database to support read uncommitted.
      +
      voidsetRecordDelimiter(int recordDelimiter) +
      Set the delimiting byte used to mark the end of a record in the backing + source file for the Recno access method.
      +
      voidsetRecordLength(int recordLength) +
      Specify the database record length, in bytes.
      +
      voidsetRecordNumberAppender(RecordNumberAppender recnoAppender) +
      Configure Database.append to call the function after the record number has been selected but before the data has been stored - into the database.
      - voidsetRecordPad(int recordPad) - -
      -          Set the padding character for short, fixed-length records for the Queue - and Recno access methods.
      - voidsetRecordSource(File recordSource) - -
      -          Set the underlying source file for the Recno access method.
      - voidsetRenumbering(boolean renumbering) - -
      -          Configure the logical record numbers to be mutable, and change as - records are added to and deleted from the database.
      - voidsetReverseSplitOff(boolean reverseSplitOff) - -
      -          Configure the Btree to not do reverse splits.
      - voidsetSnapshot(boolean snapshot) - -
      -          Specify that any specified backing source file be read in its entirety - when the database is opened.
      - voidsetSortedDuplicates(boolean sortedDuplicates) - -
      -          Configure the database to support sorted, duplicate data items.
      - voidsetTransactional(boolean transactional) - -
      -          Enclose the database open within a transaction.
      - voidsetTransactionNotDurable(boolean transactionNotDurable) - -
      -          Configure the database environment to not write log records for this - database.
      - voidsetTruncate(boolean truncate) - -
      -          Configure the database to be physically truncated by truncating the + into the database. +
      voidsetRecordPad(int recordPad) +
      Set the padding character for short, fixed-length records for the Queue + and Recno access methods.
      +
      voidsetRecordSource(java.io.File recordSource) +
      Set the underlying source file for the Recno access method.
      +
      voidsetRenumbering(boolean renumbering) +
      Configure the logical record numbers to be mutable, and change as + records are added to and deleted from the database.
      +
      voidsetReverseSplitOff(boolean reverseSplitOff) +
      Configure the Btree to not do reverse splits.
      +
      voidsetSnapshot(boolean snapshot) +
      Specify that any specified backing source file be read in its entirety + when the database is opened.
      +
      voidsetSortedDuplicates(boolean sortedDuplicates) +
      Configure the database to support sorted, duplicate data items.
      +
      voidsetTransactional(boolean transactional) +
      Enclose the database open within a transaction.
      +
      voidsetTransactionNotDurable(boolean transactionNotDurable) +
      Configure the database environment to not write log records for this + database.
      +
      voidsetTruncate(boolean truncate) +
      Configure the database to be physically truncated by truncating the underlying file, discarding all previous databases it might have - held.
      - voidsetType(DatabaseType type) - -
      -          Configure the type of the database.
      - voidsetUnsortedDuplicates(boolean unsortedDuplicates) - -
      -          Configure the database to support unsorted duplicate data items.
      - - - - - - - -
      Methods inherited from class java.lang.Object
      clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      -  -

      - + held. +

    voidsetType(DatabaseType type) +
    Configure the type of the database.
    +
    voidsetUnsortedDuplicates(boolean unsortedDuplicates) +
    Configure the database to support unsorted duplicate data items.
    +
    +
      +
    • + + +

      Methods inherited from class java.lang.Object

      +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • +
    +
  • +
+ + +
+
+
    +
  • - - - - - - -
    -Field Detail
    - -

    -DEFAULT

    -
    -public static final DatabaseConfig DEFAULT
    -
    -
    An instance created using the default constructor is initialized - with the system's default settings. -

    -

    -
    -
    - +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT

        +
        public static final DatabaseConfig DEFAULT
        +
        An instance created using the default constructor is initialized + with the system's default settings.
        +
      • +
      +
    • +
    - - - - - - -
    -Constructor Detail
    - -

    -DatabaseConfig

    -
    -public DatabaseConfig()
    -
    -
    An instance created using the default constructor is initialized with - the system's default settings. -

    -

    - +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DatabaseConfig

        +
        public DatabaseConfig()
        +
        An instance created using the default constructor is initialized with + the system's default settings.
        +
      • +
      +
    • +
    - - - - - - -
    -Method Detail
    - -

    -cloneConfig

    -
    -public DatabaseConfig cloneConfig()
    -
    -
    Returns a copy of this configuration object. -

    -

    -
    -
    -
    -
    -
    -
    -
    - -

    -setAllowCreate

    -
    -public void setAllowCreate(boolean allowCreate)
    -
    -
    Configure the Environment.openDatabase method to create +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        cloneConfig

        +
        public DatabaseConfig cloneConfig()
        +
        Returns a copy of this configuration object.
        +
      • +
      + + + +
        +
      • +

        setAllowCreate

        +
        public void setAllowCreate(boolean allowCreate)
        +
        Configure the Environment.openDatabase method to create the database if it does not already exist. -

        -

        -

        -
        -
        -
        -
        Parameters:
        allowCreate - If true, configure the Environment.openDatabase method to - create the database if it does not already exist.
        -
        -
    -
    - -

    -getAllowCreate

    -
    -public boolean getAllowCreate()
    -
    -
    Return true if the Environment.openDatabase method is configured +

+
Parameters:
allowCreate - If true, configure the Environment.openDatabase method to + create the database if it does not already exist.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  • +

    getRecordSource

    +
    public java.io.File getRecordSource()
    +
    Return the name of an underlying flat text database file that is read to initialize a transient record number index.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    The name of an underlying flat text database file that is - read to initialize a transient record number index.
    -
    - -
    - -

    -setRenumbering

    -
    -public void setRenumbering(boolean renumbering)
    -
    -
    Configure the logical record numbers to be mutable, and change as +

    +
    Returns:
    The name of an underlying flat text database file that is + read to initialize a transient record number index.
    +
  • +
+ + + +
    +
  • +

    setRenumbering

    +
    public void setRenumbering(boolean renumbering)
    +
    Configure the logical record numbers to be mutable, and change as records are added to and deleted from the database.

    For example, the deletion of record number 4 causes records numbered @@ -3652,7 +3028,7 @@ public void setRenumbering(boolean renumbering) record 25 was previously the last record in the database, will create records 26 and 27 as well as 28. Attempts to retrieve records that were created in this manner will result in an error - return of OperationStatus.KEYEMPTY. + return of OperationStatus.KEYEMPTY.

    If a created record is not at the end of the database, all records following the new record will be automatically renumbered upward by one. @@ -3673,48 +3049,37 @@ control accessing the database. configuration specified by this method must be the same as the existing database or an error will be returned. -

    -

    -

    -
    -
    -
    -
    Parameters:
    renumbering - If true, configure the logical record numbers to be mutable, and +

    +
    Parameters:
    renumbering - If true, configure the logical record numbers to be mutable, and change as records are added to and deleted from the database. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getRenumbering

    -
    -public boolean getRenumbering()
    -
    -
    Return true if the logical record numbers are mutable, and change as +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getRenumbering

    +
    public boolean getRenumbering()
    +
    Return true if the logical record numbers are mutable, and change as records are added to and deleted from the database.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the logical record numbers are mutable, and change as - records are added to and deleted from the database.
    -
    - -
    - -

    -setReverseSplitOff

    -
    -public void setReverseSplitOff(boolean reverseSplitOff)
    -
    -
    Configure the Btree to not do reverse splits. +

    +
    Returns:
    True if the logical record numbers are mutable, and change as + records are added to and deleted from the database.
    +
  • +
+ + + +
    +
  • +

    setReverseSplitOff

    +
    public void setReverseSplitOff(boolean reverseSplitOff)
    +
    Configure the Btree to not do reverse splits.

    As pages are emptied in a database, the Btree implementation attempts to coalesce empty pages into higher-level pages in order @@ -3727,47 +3092,36 @@ public void setReverseSplitOff(boolean reverseSplitOff) shrunk to a minimal size can cause severe deadlocking when a new cycle of data insertion begins.

    - Calling this method only affects the specified Database handle + Calling this method only affects the specified Database handle (and any other library handles opened within the scope of that handle). -

    -

    -

    -
    -
    -
    -
    Parameters:
    reverseSplitOff - If true, configure the Btree to not do reverse splits. +

    +
    Parameters:
    reverseSplitOff - If true, configure the Btree to not do reverse splits. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getReverseSplitOff

    -
    -public boolean getReverseSplitOff()
    -
    -
    Return true if the Btree has been configured to not do reverse splits. +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getReverseSplitOff

    +
    public boolean getReverseSplitOff()
    +
    Return true if the Btree has been configured to not do reverse splits.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the Btree has been configured to not do reverse splits.
    -
    - -
    - -

    -setSortedDuplicates

    -
    -public void setSortedDuplicates(boolean sortedDuplicates)
    -
    -
    Configure the database to support sorted, duplicate data items. +

    +
    Returns:
    True if the Btree has been configured to not do reverse splits.
    +
  • +
+ + + +
    +
  • +

    setSortedDuplicates

    +
    public void setSortedDuplicates(boolean sortedDuplicates)
    +
    Configure the database to support sorted, duplicate data items.

    Insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of @@ -3790,47 +3144,36 @@ control accessing the database. configuration specified by this method must be the same as the existing database or an error will be returned. -

    -

    -

    -
    -
    -
    -
    Parameters:
    sortedDuplicates - If true, configure the database to support duplicate data items. +

    +
    Parameters:
    sortedDuplicates - If true, configure the database to support duplicate data items. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getSortedDuplicates

    -
    -public boolean getSortedDuplicates()
    -
    -
    Return true if the database is configured to support sorted duplicate data +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getSortedDuplicates

    +
    public boolean getSortedDuplicates()
    +
    Return true if the database is configured to support sorted duplicate data items.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the database is configured to support sorted duplicate data - items.
    -
    - -
    - -

    -setUnsortedDuplicates

    -
    -public void setUnsortedDuplicates(boolean unsortedDuplicates)
    -
    -
    Configure the database to support unsorted duplicate data items. +

    +
    Returns:
    True if the database is configured to support sorted duplicate data + items.
    +
  • +
+ + + +
    +
  • +

    setUnsortedDuplicates

    +
    public void setUnsortedDuplicates(boolean unsortedDuplicates)
    +
    Configure the database to support unsorted duplicate data items.

    Insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of @@ -3852,114 +3195,86 @@ control accessing the database. configuration specified by this method must be the same as the existing database or an error will be returned. -

    -

    -

    -
    -
    -
    -
    Parameters:
    unsortedDuplicates - If true, configure the database to support unsorted duplicate data items. +

    +
    Parameters:
    unsortedDuplicates - If true, configure the database to support unsorted duplicate data items. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getUnsortedDuplicates

    -
    -public boolean getUnsortedDuplicates()
    -
    -
    Return true if the database is configured to support duplicate data items. +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getUnsortedDuplicates

    +
    public boolean getUnsortedDuplicates()
    +
    Return true if the database is configured to support duplicate data items.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the database is configured to support duplicate data items.
    -
    - -
    - -

    -setSnapshot

    -
    -public void setSnapshot(boolean snapshot)
    -
    -
    Specify that any specified backing source file be read in its entirety +

    +
    Returns:
    True if the database is configured to support duplicate data items.
    +
  • +
+ + + +
    +
  • +

    setSnapshot

    +
    public void setSnapshot(boolean snapshot)
    +
    Specify that any specified backing source file be read in its entirety when the database is opened.

    If this flag is not specified, the backing source file may be read lazily.

    - Calling this method only affects the specified Database handle + Calling this method only affects the specified Database handle (and any other library handles opened within the scope of that handle). -

    -

    -

    -
    -
    -
    -
    Parameters:
    snapshot - If true, any specified backing source file will be read in its entirety +

    +
    Parameters:
    snapshot - If true, any specified backing source file will be read in its entirety when the database is opened. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getSnapshot

    -
    -public boolean getSnapshot()
    -
    -
    Return true if the any specified backing source file will be read in its +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getSnapshot

    +
    public boolean getSnapshot()
    +
    Return true if the any specified backing source file will be read in its entirety when the database is opened.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the any specified backing source file will be read in its - entirety when the database is opened.
    -
    - -
    - -

    -getTransactional

    -
    -public boolean getTransactional()
    -
    -
    Return true if the database open is enclosed within a transaction. +

    +
    Returns:
    True if the any specified backing source file will be read in its + entirety when the database is opened.
    +
  • +
+ + + +
    +
  • +

    getTransactional

    +
    public boolean getTransactional()
    +
    Return true if the database open is enclosed within a transaction.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the database open is enclosed within a transaction.
    -
    - -
    - -

    -setTransactional

    -
    -public void setTransactional(boolean transactional)
    -
    -
    Enclose the database open within a transaction. +

    +
    Returns:
    True if the database open is enclosed within a transaction.
    +
  • +
+ + + +
    +
  • +

    setTransactional

    +
    public void setTransactional(boolean transactional)
    +
    Enclose the database open within a transaction.

    If the call succeeds, the open operation will be recoverable. If the call fails, no database will have been created. @@ -3967,23 +3282,18 @@ public void setTransactional(boolean transactional) All future operations on this database, which are not explicitly enclosed in a transaction by the application, will be enclosed in in a transaction within the library. -

    -

    -

    -
    -
    -
    -
    Parameters:
    transactional - If true, enclose the database open within a transaction.
    -
    - -
    - -

    -setTransactionNotDurable

    -
    -public void setTransactionNotDurable(boolean transactionNotDurable)
    -
    -
    Configure the database environment to not write log records for this +

    +
    Parameters:
    transactional - If true, enclose the database open within a transaction.
    +
  • +
+ + + +
    +
  • +

    setTransactionNotDurable

    +
    public void setTransactionNotDurable(boolean transactionNotDurable)
    +
    Configure the database environment to not write log records for this database.

    This means that updates of this database exhibit the ACI (atomicity, @@ -3995,55 +3305,44 @@ public void setTransactionNotDurable(boolean transactionNotDurable)< must be flushed to disk before the database handles are closed, or all database changes must be flushed from the database environment cache - using Environment.checkpoint. + using Environment.checkpoint.

    All database handles for a single physical file must call this method, including database handles for different databases in a physical file.

    - Calling this method only affects the specified Database handle + Calling this method only affects the specified Database handle (and any other library handles opened within the scope of that handle). -

    -

    -

    -
    -
    -
    -
    Parameters:
    transactionNotDurable - If true, configure the database environment to not write log records +

    +
    Parameters:
    transactionNotDurable - If true, configure the database environment to not write log records for this database. A value of false is illegal to this method, that is, once set, the -configuration cannot be cleared.
    - - -
    - -

    -getTransactionNotDurable

    -
    -public boolean getTransactionNotDurable()
    -
    -
    Return true if the database environment is configured to not write log +configuration cannot be cleared.
    +
  • +
+ + + +
    +
  • +

    getTransactionNotDurable

    +
    public boolean getTransactionNotDurable()
    +
    Return true if the database environment is configured to not write log records for this database.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the database environment is configured to not write log - records for this database.
    -
    - -
    - -

    -setTruncate

    -
    -public void setTruncate(boolean truncate)
    -
    -
    Configure the database to be physically truncated by truncating the +

    +
    Returns:
    True if the database environment is configured to not write log + records for this database.
    +
  • +
+ + + +
    +
  • +

    setTruncate

    +
    public void setTruncate(boolean truncate)
    +
    Configure the database to be physically truncated by truncating the underlying file, discarding all previous databases it might have held.

    @@ -4054,145 +3353,130 @@ public void setTruncate(boolean truncate) This configuration option cannot be lock or transaction-protected, and it is an error to specify it in a locking or transaction-protected database environment. -

    -

    -

    -
    -
    -
    -
    Parameters:
    truncate - If true, configure the database to be physically truncated by truncating +

    +
    Parameters:
    truncate - If true, configure the database to be physically truncated by truncating the underlying file, discarding all previous databases it might have - held.
    - - -
    - -

    -getTruncate

    -
    -public boolean getTruncate()
    -
    -
    Return true if the database has been configured to be physically truncated + held.
    +
  • +
+ + + +
    +
  • +

    getTruncate

    +
    public boolean getTruncate()
    +
    Return true if the database has been configured to be physically truncated by truncating the underlying file, discarding all previous databases it might have held.

    This method may be called at any time during the life of the application. -

    -

    -

    -
    -
    -
    - -
    Returns:
    True if the database has been configured to be physically truncated +

    +
    Returns:
    True if the database has been configured to be physically truncated by truncating the underlying file, discarding all previous databases - it might have held.
    - - -
    - -

    -setType

    -
    -public void setType(DatabaseType type)
    -
    -
    Configure the type of the database. + it might have held.
    +
  • +
+ + + +
    +
  • +

    setType

    +
    public void setType(DatabaseType type)
    +
    Configure the type of the database.

    If they type is DB_UNKNOWN, the database must already exist. -

    -

    -

    -
    -
    -
    -
    Parameters:
    type - The type of the database.
    -
    - -
    - -

    -getType

    -
    -public DatabaseType getType()
    -
    -
    Return the type of the database. +

    +
    Parameters:
    type - The type of the database.
    +
  • +
+ + + +
    +
  • +

    getType

    +
    public DatabaseType getType()
    +
    Return the type of the database.

    This method may be used to determine the type of the database after opening it.

    This method may not be called before the database has been opened. -

    -

    -

    -
    -
    -
    - -
    Returns:
    The type of the database.
    -
    - +

    +
    Returns:
    The type of the database.
    +
  • +
+ + + + +
+ -
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1