| Modifier and Type | Field and Description |
|---|---|
| protected int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Page | addPage(BaseContainerHandle handle, boolean isOverflow)
Overrides org. Add a page without locking the container, only one user will be accessing this table at a time. |
| public Cacheable | createIdentity(Object
The handle on the cacheable key, Object Creation details createParameter)Overrides org. Implements org. Create a new item. |
| pack-priv StorageFile | getFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath)
Overrides org.
|
| public boolean | |
| protected void | letGo(BaseContainerHandle handle)
Overrides org. Discontinue use of this container. |
| protected int | preAllocate(long
the last preallocated page number as known
by the allocation page lastPreallocPagenum, int try to preallocate this page number of pages.
Since only the container knows how many pages are actually on
disk, it may determine that certain number of pages that the
allocation page thinks need to be preallocated is already
allocated, in those case, act as if the preallocation is
successful. preAllocSize)Overrides org. Preallocate page. |
| protected StorageFile | privGetFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath)
Overrides org.
|
| public void | removeContainer(LogInstant instant, boolean
if true, leave a stub. If false, remove everything leaveStub)Overrides org. Remove the container |
| public Cacheable | setIdentity(Object
The handle on the cacheable key)Overrides org. Implements org. Open the container. |
| public void | |
| protected boolean | Returns: true if the container can be used, false if it has been dropped since the lock was requested and droppedOK is not true.if true, use this container even if it is dropped., droppedOK)Overrides org. Lock the container and mark the container as in-use by this container handle. |
| protected void | writePage(long pageNumber, byte[] pageData, boolean syncPage)
Overrides org. Write the page, if it's within range of the current page range of the container. |
| inUseCount | back to summary |
|---|---|
| protected int inUseCount | |
| TempRAFContainer | back to summary |
|---|---|
| pack-priv TempRAFContainer(BaseDataFileFactory factory) | |
| addPage | back to summary |
|---|---|
| public Page addPage(BaseContainerHandle handle, boolean isOverflow) throws StandardException Overrides org. Add a page without locking the container, only one user will be accessing this table at a time.
| |
| createIdentity | back to summary |
|---|---|
| public Cacheable createIdentity(Object key, Object createParameter) throws StandardException Overrides org. Implements org. Doc from org. Create a new item.
Create a new item and set the identity of the object to represent it.
The object will be in the No Identity state,
ie. it will have just been created or clearIdentity() was just called.
| |
| getFileName | back to summary |
|---|---|
| pack-priv StorageFile getFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) Overrides org. | |
| isSingleUser | back to summary |
|---|---|
| public boolean isSingleUser() Returns true if only a single handle is connected to this container. | |
| letGo | back to summary |
|---|---|
| protected void letGo(BaseContainerHandle handle) Overrides org. Discontinue use of this container. Note that the unlockContainer call made from this method may not release any locks. The container lock may be held until the end of the transaction. | |
| preAllocate | back to summary |
|---|---|
| protected int preAllocate(long lastPreallocPagenum, int preAllocSize) Overrides org. Preallocate page. Since we don't sync when we write page anyway, no need to preallocate page.
| |
| privGetFileName | back to summary |
|---|---|
| protected StorageFile privGetFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) Overrides org. | |
| removeContainer | back to summary |
|---|---|
| public void removeContainer(LogInstant instant, boolean leaveStub) throws StandardException Overrides org. Doc from org. Remove the container
| |
| setIdentity | back to summary |
|---|---|
| public Cacheable setIdentity(Object key) throws StandardException Overrides org. Implements org. Doc from org. Open the container.
| |
| truncate | back to summary |
|---|---|
| public void truncate(BaseContainerHandle handle) throws StandardException Overrides org.
| |
| use | back to summary |
|---|---|
| protected boolean use(BaseContainerHandle handle, boolean forUpdate, boolean droppedOK) throws StandardException Overrides org. Lock the container and mark the container as in-use by this container handle.
| |
| writePage | back to summary |
|---|---|
| protected void writePage(long pageNumber, byte[] pageData, boolean syncPage) throws IOException, StandardException Overrides org. Write the page, if it's within range of the current page range of the container. If we do write it then don't request that it be synced.
| |