ContainerHandle
BaseContainerHandle
public interface RawContainerHandle extends ContainerHandle
Modifier and Type | Field | Description |
---|---|---|
static int |
COMMITTED_DROP |
|
static int |
DROPPED |
|
static int |
NORMAL |
A container can be in 4 states:
non_existent - this is represented by a null ContainerHandle
NORMAL - this is the normal case, container has been created and is not dropped.
|
ADD_PAGE_BULK, ADD_PAGE_DEFAULT, DEFAULT_ASSIGN_ID, DEFAULT_PAGESIZE, DEFAULT_SPARESPACE, FIRST_PAGE_NUMBER, GET_PAGE_UNFILLED, INVALID_PAGE_NUMBER, MODE_BASEROW_INSERT_LOCKED, MODE_CREATE_UNLOGGED, MODE_DEFAULT, MODE_DROP_ON_COMMIT, MODE_FLUSH_ON_COMMIT, MODE_FORUPDATE, MODE_LOCK_NOWAIT, MODE_LOCK_ROW_NOWAIT, MODE_NO_ACTIONS_ON_COMMIT, MODE_OPEN_FOR_LOCK_ONLY, MODE_READONLY, MODE_SECONDARY_LOCKED, MODE_TEMP_IS_KEPT, MODE_TRUNCATE_ON_COMMIT, MODE_TRUNCATE_ON_ROLLBACK, MODE_UNLOGGED, MODE_USE_UPDATE_LOCKS, TEMPORARY_SEGMENT
Modifier and Type | Method | Description |
---|---|---|
void |
dropContainer(LogInstant instant,
boolean drop) |
If drop is true, drop the container.
|
void |
encryptOrDecryptContainer(java.lang.String newFilePath,
boolean doEncrypt) |
Creates an encrypted or decrypted version of the container.
|
Page |
getAnyPage(long pageNumber) |
Return a Page that represents any page - alloc page, valid page, free page,
dealloced page etc.
|
int |
getContainerStatus() |
Return the status of the container - one of NORMAL, DROPPED, COMMITTED_DROP.
|
long |
getContainerVersion() |
Get the logged container version
|
ByteArray |
logCreateContainerInfo() |
Log all information necessary to recreate the container during a load
tran.
|
void |
preDirty(boolean preDirtyOn) |
The container is about to be modified.
|
Page |
reCreatePageForRedoRecovery(int pageFormat,
long pageNumber,
long pageOffset) |
ReCreate a page for redo recovery.
|
void |
removeContainer(LogInstant instant) |
Remove the container.
|
addPage, addPage, backupContainer, close, compactRecord, compressContainer, flushContainer, getContainerProperties, getEstimatedPageCount, getEstimatedRowCount, getFirstPage, getId, getLockingPolicy, getNextPage, getPage, getPageForCompress, getPageForInsert, getPageNoWait, getReusableRecordIdSequenceNumber, getSpaceInfo, getUniqueId, getUserPageNoWait, getUserPageWait, isReadOnly, isTemporaryContainer, makeRecordHandle, preAllocate, removePage, setEstimatedRowCount, setLockingPolicy
static final int NORMAL
static final int DROPPED
static final int COMMITTED_DROP
int getContainerStatus() throws StandardException
StandardException
- Standard Derby exception policyvoid removeContainer(LogInstant instant) throws StandardException
StandardException
- Standard Derby exception policyvoid dropContainer(LogInstant instant, boolean drop) throws StandardException
StandardException
- Standard Derby exception policylong getContainerVersion() throws StandardException
StandardException
- Standard Derby exception policyPage getAnyPage(long pageNumber) throws StandardException
StandardException
- Standard Derby error policyPage reCreatePageForRedoRecovery(int pageFormat, long pageNumber, long pageOffset) throws StandardException
StandardException
- Standard Derby error policyByteArray logCreateContainerInfo() throws StandardException
StandardException
- Standard Derby error policyvoid preDirty(boolean preDirtyOn) throws StandardException
StandardException
- Standard Derby error policyvoid encryptOrDecryptContainer(java.lang.String newFilePath, boolean doEncrypt) throws StandardException
newFilePath
- file to store the new version of the containerdoEncrypt
- tells whether to encrypt or decryptStandardException
- Standard Derby error policyApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.