|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> store >> raw >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.store.raw.data
Interface RawContainerHandle

- All Superinterfaces:
- org.apache.derby.iapi.store.raw.ContainerHandle
- public interface RawContainerHandle
- extends org.apache.derby.iapi.store.raw.ContainerHandle
RawContainerHandle is the form of ContainerHandle that is used within the raw store. This allows the raw store to have a handle on dropped container without exposing this to the external interface, which is not allowed to get back a handle on a dropped container
| Field Summary | |
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. |
| Method Summary | |
void |
dropContainer(org.apache.derby.iapi.store.raw.log.LogInstant instant,
boolean drop)
If drop is true, drop the container. |
org.apache.derby.iapi.store.raw.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 |
org.apache.derby.iapi.util.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. |
org.apache.derby.iapi.store.raw.Page |
reCreatePageForLoadTran(int pageFormat,
long pageNumber,
long pageOffset)
ReCreate a page for load tran - called by recovery redo ONLY |
void |
removeContainer(org.apache.derby.iapi.store.raw.log.LogInstant instant)
Remove the container. |
| Methods inherited from interface org.apache.derby.iapi.store.raw.ContainerHandle |
addPage, addPage, close, compactRecord, compressContainer, flushContainer, getContainerProperties, getEstimatedPageCount, getEstimatedRowCount, getFirstPage, getId, getLockingPolicy, getNextPage, getPage, getPageForCompress, getPageForInsert, getPageNoWait, getSpaceInfo, getUniqueId, getUserPageNoWait, getUserPageWait, isReadOnly, isTemporaryContainer, makeRecordHandle, preAllocate, removePage, setEstimatedRowCount, setLockingPolicy |
| Field Detail |
NORMAL
public static final 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.
DROPPED - container has been dropped, but is not known whether the drop
has been committed or not
COMMITTED_DROP - container has been dropped and has committed. To
everyone else except recovery, this state is equivalent
to NON_EXISTENT
- See Also:
- Constant Field Values
DROPPED
public static final int DROPPED
- See Also:
- Constant Field Values
COMMITTED_DROP
public static final int COMMITTED_DROP
- See Also:
- Constant Field Values
| Method Detail |
getContainerStatus
public int getContainerStatus()
throws org.apache.derby.iapi.error.StandardException
- Return the status of the container - one of NORMAL, DROPPED, COMMITTED_DROP.
removeContainer
public void removeContainer(org.apache.derby.iapi.store.raw.log.LogInstant instant) throws org.apache.derby.iapi.error.StandardException
- Remove the container.
dropContainer
public void dropContainer(org.apache.derby.iapi.store.raw.log.LogInstant instant, boolean drop) throws org.apache.derby.iapi.error.StandardException
- If drop is true, drop the container. if drop is false, un-drop the
container
getContainerVersion
public long getContainerVersion()
throws org.apache.derby.iapi.error.StandardException
- Get the logged container version
getAnyPage
public org.apache.derby.iapi.store.raw.Page getAnyPage(long pageNumber) throws org.apache.derby.iapi.error.StandardException
- Return a Page that represents any page - alloc page, valid page, free page,
dealloced page etc.
reCreatePageForLoadTran
public org.apache.derby.iapi.store.raw.Page reCreatePageForLoadTran(int pageFormat, long pageNumber, long pageOffset) throws org.apache.derby.iapi.error.StandardException
- ReCreate a page for load tran - called by recovery redo ONLY
logCreateContainerInfo
public org.apache.derby.iapi.util.ByteArray logCreateContainerInfo() throws org.apache.derby.iapi.error.StandardException
- Log all information necessary to recreate the container during a load
tran.
preDirty
public void preDirty(boolean preDirtyOn)
throws org.apache.derby.iapi.error.StandardException
- The container is about to be modified.
Loggable actions use this to make sure the container gets cleaned if a
checkpoint is taken after any log record is sent to the log stream but
before the container is actually dirtied.
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> store >> raw >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC