org.exist.storage.index
Class CollectionStore

java.lang.Object
  extended by org.exist.storage.btree.Paged
      extended by org.exist.storage.btree.BTree
          extended by org.exist.storage.index.BFile
              extended by org.exist.storage.index.CollectionStore

public class CollectionStore
extends BFile

Handles access to the central collection storage file (collections.dbx).

Author:
wolf

Nested Class Summary
static class CollectionStore.CollectionKey
           
static class CollectionStore.DocumentKey
           
 
Nested classes/interfaces inherited from class org.exist.storage.index.BFile
BFile.PageInputStream
 
Nested classes/interfaces inherited from class org.exist.storage.btree.Paged
Paged.FileHeader, Paged.Page, Paged.PageHeader
 
Field Summary
static String FILE_KEY_IN_CONFIG
           
static String FILE_NAME
           
static String FREE_COLLECTION_ID_KEY
           
static String FREE_DOC_ID_KEY
           
static byte KEY_TYPE_COLLECTION
           
static byte KEY_TYPE_DOCUMENT
           
static String NEXT_COLLECTION_ID_KEY
           
static String NEXT_DOC_ID_KEY
           
 
Fields inherited from class org.exist.storage.index.BFile
DATA_SYNC_PERIOD, FILE_FORMAT_VERSION_ID, fixedKeyLen, FREE_LIST, LENGTH_NEXT_TID, LENGTH_RECORDS_COUNT, LOB, LOG_CREATE_PAGE, LOG_OVERFLOW_APPEND, LOG_OVERFLOW_CREATE, LOG_OVERFLOW_CREATE_PAGE, LOG_OVERFLOW_MODIFIED, LOG_OVERFLOW_REMOVE, LOG_OVERFLOW_STORE, LOG_REMOVE_PAGE, LOG_REMOVE_VALUE, LOG_STORE_VALUE, MULTI_PAGE, PAGE_MIN_FREE, RECORD, UNKNOWN_ADDRESS
 
Fields inherited from class org.exist.storage.btree.BTree
KEY_NOT_FOUND, LOG_CREATE_BNODE, LOG_INSERT_VALUE, LOG_SET_LINK, LOG_SET_PARENT, LOG_UPDATE_PAGE, LOG_UPDATE_VALUE
 
Fields inherited from class org.exist.storage.btree.Paged
LENGTH_FIRST_FREE_PAGE, LENGTH_HEADER_SIZE, LENGTH_LAST_FREE_PAGE, LENGTH_MAX_KEY_SIZE, LENGTH_PAGE_COUNT, LENGTH_PAGE_HEADER_SIZE, LENGTH_PAGE_SIZE, LENGTH_RECORD_COUNT, LENGTH_TOTAL_COUNT, LENGTH_VERSION_ID, OFFSET_FIRST_FREE_PAGE, OFFSET_HEADER_SIZE, OFFSET_LAST_FREE_PAGE, OFFSET_MAX_KEY_SIZE, OFFSET_PAGE_COUNT, OFFSET_PAGE_HEADER_SIZE, OFFSET_PAGE_SIZE, OFFSET_RECORD_COUNT, OFFSET_REMAINDER, OFFSET_TOTAL_COUNT, OFFSET_VERSION_ID
 
Constructor Summary
CollectionStore(BrokerPool pool, byte id, String dataDir, Configuration config)
           
 
Method Summary
 boolean flush()
           
static String getConfigKeyForFile()
           
static String getFileName()
           
 
Methods inherited from class org.exist.storage.index.BFile
append, append, close, closeAndRemove, containsKey, create, createFileHeader, createPageHeader, debugFreeList, find, findEntries, findKeys, get, get, getAsStream, getAsStream, getDataBufferStats, getEntries, getFileVersion, getKeys, getLock, getValues, open, printStatistics, put, put, put, put, put, remove, remove, remove, removeAll, setLocation, storeValue, update, update, update
 
Methods inherited from class org.exist.storage.btree.BTree
addValue, addValue, create, dump, findValue, getIndexBufferStats, open, query, query, remove, remove, removeValue, removeValue, treeStatistics
 
Methods inherited from class org.exist.storage.btree.Paged
backupToStream, exists, getFile, getFileHeader, getPageSize, hexDump, isOpened, isReadOnly, printFreeSpaceList, setPageSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

FILE_KEY_IN_CONFIG

public static final String FILE_KEY_IN_CONFIG
See Also:
Constant Field Values

FREE_DOC_ID_KEY

public static final String FREE_DOC_ID_KEY
See Also:
Constant Field Values

NEXT_DOC_ID_KEY

public static final String NEXT_DOC_ID_KEY
See Also:
Constant Field Values

FREE_COLLECTION_ID_KEY

public static final String FREE_COLLECTION_ID_KEY
See Also:
Constant Field Values

NEXT_COLLECTION_ID_KEY

public static final String NEXT_COLLECTION_ID_KEY
See Also:
Constant Field Values

KEY_TYPE_COLLECTION

public static final byte KEY_TYPE_COLLECTION
See Also:
Constant Field Values

KEY_TYPE_DOCUMENT

public static final byte KEY_TYPE_DOCUMENT
See Also:
Constant Field Values
Constructor Detail

CollectionStore

public CollectionStore(BrokerPool pool,
                       byte id,
                       String dataDir,
                       Configuration config)
                throws DBException
Parameters:
pool -
id -
dataDir -
config -
Throws:
DBException
Method Detail

getFileName

public static String getFileName()

getConfigKeyForFile

public static String getConfigKeyForFile()

flush

public boolean flush()
              throws DBException
Overrides:
flush in class BFile
Throws:
DBException


Copyright (C) Wolfgang Meier. All rights reserved.