| java.lang.Object org.apache.derby.impl.store.raw.data.BaseContainer org.apache.derby.impl.store.raw.data.FileContainer org.apache.derby.impl.store.raw.data.RAFContainer org.apache.derby.impl.store.raw.data.TempRAFContainer
TempRAFContainer | class TempRAFContainer extends RAFContainer (Code) | | needsSync is never true - DONE
An exception never marks the store as corrupt
clean() does not stubbify
preAllocate() does nothing - DONE
getFileName() returns a file in the tmp directory - DONE
flushAll does nothing - DONE
file descriptor is never synced
|
Method Summary | |
public Page | addPage(BaseContainerHandle handle, boolean isOverflow) Add a page without locking the container, only one user will be accessing this
table at a time. | public Cacheable | createIdentity(Object key, Object createParameter) | StorageFile | getFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) | public boolean | isSingleUser() Returns true if only a single handle is connected to this container. | protected void | letGo(BaseContainerHandle handle) Discontinue use of this container. | protected int | preAllocate(long lastPreallocPagenum, int preAllocSize) Preallocate page. | protected StorageFile | privGetFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) | public void | removeContainer(LogInstant instant, boolean leaveStub) | public Cacheable | setIdentity(Object key) | public void | truncate(BaseContainerHandle handle) | protected boolean | use(BaseContainerHandle handle, boolean forUpdate, boolean droppedOK) Lock the container and mark the container as in-use by this container handle. | protected void | writePage(long pageNumber, byte[] pageData, boolean syncPage) Write the page, if it's within range of the current page range of the container. |
inUseCount | protected int inUseCount(Code) | | |
isSingleUser | public boolean isSingleUser()(Code) | | Returns true if only a single handle is connected to this container.
|
letGo | protected void letGo(BaseContainerHandle handle)(Code) | | 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 | protected int preAllocate(long lastPreallocPagenum, int preAllocSize)(Code) | | Preallocate page. Since we don't sync when we write page anyway, no
need to preallocate page.
|
use | protected boolean use(BaseContainerHandle handle, boolean forUpdate, boolean droppedOK) throws StandardException(Code) | | Lock the container and mark the container as in-use by this container handle.
Parameters: droppedOK - if true, use this container even if it is dropped., true if the container can be used, false if it has been droppedsince the lock was requested and droppedOK is not true. exception: StandardException - I cannot be opened for update. |
writePage | protected void writePage(long pageNumber, byte[] pageData, boolean syncPage) throws IOException, StandardException(Code) | | 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.
exception: StandardException - Standard Cloudscape error policy |
Methods inherited from org.apache.derby.impl.store.raw.data.RAFContainer | protected void backupContainer(BaseContainerHandle handle, String backupLocation) throws StandardException(Code)(Java Doc) public void clean(boolean forRemove) throws StandardException(Code)(Java Doc) final void closeContainer()(Code)(Java Doc) synchronized void createContainer(ContainerKey newIdentity) throws StandardException(Code)(Java Doc) public Cacheable createIdentity(Object key, Object createParameter) throws StandardException(Code)(Java Doc) protected void encryptContainer(BaseContainerHandle handle, String newFilePath) throws StandardException(Code)(Java Doc) protected void flushAll() throws StandardException(Code)(Java Doc) synchronized StorageFile getFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) throws StandardException(Code)(Java Doc) public synchronized boolean isDirty()(Code)(Java Doc) synchronized boolean openContainer(ContainerKey newIdentity) throws StandardException(Code)(Java Doc) protected int preAllocate(long lastPreallocPagenum, int preAllocSize)(Code)(Java Doc) protected StorageFile privGetFileName(ContainerKey identity, boolean stub, boolean errorOK, boolean tryAlternatePath) throws StandardException(Code)(Java Doc) synchronized StorageRandomAccessFile privGetRandomAccessFile(StorageFile file) throws SecurityException, StandardException(Code)(Java Doc) protected void readPage(long pageNumber, byte[] pageData) throws IOException, StandardException(Code)(Java Doc) protected void removeContainer(LogInstant instant, boolean leaveStub) throws StandardException(Code)(Java Doc) synchronized boolean removeFile(StorageFile file) throws SecurityException, StandardException(Code)(Java Doc) public Object run() throws StandardException, IOException(Code)(Java Doc) public Cacheable setIdentity(Object key) throws StandardException(Code)(Java Doc) protected void truncatePages(long lastValidPagenum) throws StandardException(Code)(Java Doc) protected void writePage(long pageNumber, byte[] pageData, boolean syncPage) throws IOException, StandardException(Code)(Java Doc)
|
Methods inherited from org.apache.derby.impl.store.raw.data.FileContainer | abstract protected void backupContainer(BaseContainerHandle handle, String backupLocation) throws StandardException(Code)(Java Doc) final protected void bumpContainerVersion(LogInstant instant)(Code)(Java Doc) protected boolean canUpdate()(Code)(Java Doc) public void clearIdentity()(Code)(Java Doc) protected void clearPreallocThreshold()(Code)(Java Doc) abstract void closeContainer()(Code)(Java Doc) protected void compressContainer(RawTransaction ntt, BaseContainerHandle allocHandle) throws StandardException(Code)(Java Doc) abstract void createContainer(ContainerKey newIdentity) throws StandardException(Code)(Java Doc) protected Cacheable createIdent(ContainerKey newIdentity, Object createParameter) throws StandardException(Code)(Java Doc) public Cacheable createIdentity(Object key, Object createParameter) throws StandardException(Code)(Java Doc) protected void deallocatePage(BaseContainerHandle handle, BasePage page) throws StandardException(Code)(Java Doc) protected void decryptPage(byte[] pageData, int pageSize) throws StandardException(Code)(Java Doc) protected int doPreAllocatePages(long lastPreallocPagenum, int preAllocSize)(Code)(Java Doc) protected void dropContainer(LogInstant instant, boolean isDropped)(Code)(Java Doc) protected byte[] encryptPage(byte[] pageData, int pageSize, byte[] encryptionBuffer, boolean newEngine) throws StandardException(Code)(Java Doc) protected BasePage getAllocPage(long pageNumber) throws StandardException(Code)(Java Doc) protected BasePage getAnyPage(BaseContainerHandle handle, long pageNumber) throws StandardException(Code)(Java Doc) public void getContainerProperties(Properties prop) throws StandardException(Code)(Java Doc) protected long getContainerVersion()(Code)(Java Doc) protected byte[] getEmbryonicPage(DataInput fileData) throws IOException(Code)(Java Doc) protected byte[] getEncryptionBuffer()(Code)(Java Doc) public long getEstimatedPageCount(BaseContainerHandle handle, int flag) throws StandardException(Code)(Java Doc) public long getEstimatedRowCount(int flag)(Code)(Java Doc) protected BasePage getFirstHeadPage(BaseContainerHandle handle, boolean wait) throws StandardException(Code)(Java Doc) protected BasePage getHeadPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) protected long getLastPageNumber(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) protected BasePage getLatchedPage(BaseContainerHandle handle, long pageNumber) throws StandardException(Code)(Java Doc) protected int getMinimumRecordSize()(Code)(Java Doc) protected BasePage getNextHeadPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) protected BasePage getPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) protected BasePage getPageForCompress(BaseContainerHandle handle, int flag, long pageno) throws StandardException(Code)(Java Doc) protected BasePage getPageForInsert(BaseContainerHandle handle, int flag) throws StandardException(Code)(Java Doc) protected int getPageSize()(Code)(Java Doc) final public long getReusableRecordIdSequenceNumber()(Code)(Java Doc) public SpaceInfo getSpaceInfo(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) protected int getSpareSpace()(Code)(Java Doc) public int getTypeFormatId()(Code)(Java Doc) final protected void incrementReusableRecordIdSequenceNumber()(Code)(Java Doc) protected BasePage initPage(BaseContainerHandle allochandle, PageKey pkey, int[] createArgs, long pageOffset, boolean reuse, boolean overflow) throws StandardException(Code)(Java Doc) public boolean isDirty()(Code)(Java Doc) protected BasePage latchPage(BaseContainerHandle handle, BasePage foundPage, boolean wait) throws StandardException(Code)(Java Doc) protected void letGo(BaseContainerHandle handle)(Code)(Java Doc) protected ByteArray logCreateContainerInfo() throws StandardException(Code)(Java Doc) protected BasePage newPage(BaseContainerHandle userHandle, RawTransaction ntt, BaseContainerHandle allocHandle, boolean isOverflow) throws StandardException(Code)(Java Doc) abstract boolean openContainer(ContainerKey newIdentity) throws StandardException(Code)(Java Doc) abstract protected int preAllocate(long lastPreallocPagenum, int preAllocSize)(Code)(Java Doc) public void preDirty(boolean preDirtyOn)(Code)(Java Doc) protected void prepareForBulkLoad(BaseContainerHandle handle, int numPage)(Code)(Java Doc) protected BasePage reCreatePageForRedoRecovery(BaseContainerHandle handle, int pageFormat, long pageNumber, long pageOffset) throws StandardException(Code)(Java Doc) protected void readHeader(DataInput fileData) throws IOException, StandardException(Code)(Java Doc) abstract protected void readPage(long pageNumber, byte[] pageData) throws IOException, StandardException(Code)(Java Doc) protected void setDirty(boolean dirty)(Code)(Java Doc) public void setEstimatedRowCount(long count, int flag)(Code)(Java Doc) protected Cacheable setIdent(ContainerKey newIdentity) throws StandardException(Code)(Java Doc) public Cacheable setIdentity(Object key) throws StandardException(Code)(Java Doc) protected void trackUnfilledPage(long pagenumber, boolean unfilled)(Code)(Java Doc) protected void updateEstimatedRowCount(int delta)(Code)(Java Doc) protected void writeHeader(byte[] pageData) throws StandardException, IOException(Code)(Java Doc) protected void writeHeader(DataOutput fileData, boolean create, byte[] epage) throws IOException, StandardException(Code)(Java Doc) abstract protected void writePage(long pageNumber, byte[] pageData, boolean syncPage) throws IOException, StandardException(Code)(Java Doc)
|
Methods inherited from org.apache.derby.impl.store.raw.data.BaseContainer | public Page addPage(BaseContainerHandle handle, boolean isOverflow) throws StandardException(Code)(Java Doc) abstract protected void backupContainer(BaseContainerHandle handle, String backupContainerPath) throws StandardException(Code)(Java Doc) abstract protected boolean canUpdate()(Code)(Java Doc) public void clearIdentity()(Code)(Java Doc) abstract protected void clearPreallocThreshold()(Code)(Java Doc) public void compressContainer(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) abstract protected void compressContainer(RawTransaction t, BaseContainerHandle allocHandle) throws StandardException(Code)(Java Doc) abstract protected void deallocatePage(BaseContainerHandle userhandle, BasePage page) throws StandardException(Code)(Java Doc) abstract protected void dropContainer(LogInstant instant, boolean drop)(Code)(Java Doc) abstract protected void encryptContainer(BaseContainerHandle handle, String newFilePath) throws StandardException(Code)(Java Doc) protected void fillInIdentity(ContainerKey key)(Code)(Java Doc) abstract protected void flushAll() throws StandardException(Code)(Java Doc) protected Page getAllocPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) abstract protected BasePage getAllocPage(long pageNumber) throws StandardException(Code)(Java Doc) protected Page getAnyPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) abstract protected BasePage getAnyPage(BaseContainerHandle handle, long pageNumber) throws StandardException(Code)(Java Doc) protected boolean getCommittedDropState()(Code)(Java Doc) public long getContainerId()(Code)(Java Doc) abstract public void getContainerProperties(Properties prop) throws StandardException(Code)(Java Doc) public int getContainerStatus()(Code)(Java Doc) abstract protected long getContainerVersion() throws StandardException(Code)(Java Doc) protected boolean getDeallocLock(BaseContainerHandle handle, RecordHandle deallocLock, boolean wait, boolean zeroDuration) throws StandardException(Code)(Java Doc) protected boolean getDroppedState()(Code)(Java Doc) abstract public long getEstimatedPageCount(BaseContainerHandle handle, int flag) throws StandardException(Code)(Java Doc) abstract public long getEstimatedRowCount(int flag) throws StandardException(Code)(Java Doc) abstract protected BasePage getFirstHeadPage(BaseContainerHandle handle, boolean wait) throws StandardException(Code)(Java Doc) protected Page getFirstPage(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) abstract protected BasePage getHeadPage(BaseContainerHandle handle, long pagenumber, boolean wait) throws StandardException(Code)(Java Doc) public Object getIdentity()(Code)(Java Doc) abstract protected BasePage getNextHeadPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) protected Page getNextPage(BaseContainerHandle handle, long pageNumber) throws StandardException(Code)(Java Doc) abstract protected BasePage getPage(BaseContainerHandle handle, long pageNumber, boolean wait) throws StandardException(Code)(Java Doc) abstract protected BasePage getPageForCompress(BaseContainerHandle handle, int flag, long pageno) throws StandardException(Code)(Java Doc) abstract protected BasePage getPageForInsert(BaseContainerHandle handle, int flag) throws StandardException(Code)(Java Doc) abstract public long getReusableRecordIdSequenceNumber()(Code)(Java Doc) public long getSegmentId()(Code)(Java Doc) abstract protected SpaceInfo getSpaceInfo(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) abstract protected void incrementReusableRecordIdSequenceNumber()(Code)(Java Doc) protected boolean isReusableRecordId()(Code)(Java Doc) protected BasePage latchPage(BaseContainerHandle handle, BasePage foundPage, boolean wait) throws StandardException(Code)(Java Doc) protected void letGo(BaseContainerHandle handle)(Code)(Java Doc) public boolean lockAttributes(int flag, Hashtable attributes)(Code)(Java Doc) public void lockEvent(Latch lockInfo)(Code)(Java Doc) public boolean lockerAlwaysCompatible()(Code)(Java Doc) abstract protected ByteArray logCreateContainerInfo() throws StandardException(Code)(Java Doc) abstract protected BasePage newPage(BaseContainerHandle userhandle, RawTransaction t, BaseContainerHandle allocHandle, boolean isOverflow) throws StandardException(Code)(Java Doc) abstract protected void preDirty(boolean preDirtyOn)(Code)(Java Doc) abstract protected void prepareForBulkLoad(BaseContainerHandle handle, int numPage)(Code)(Java Doc) abstract protected BasePage reCreatePageForRedoRecovery(BaseContainerHandle handle, int pageFormat, long pageNumber, long pageOffset) throws StandardException(Code)(Java Doc) abstract protected void removeContainer(LogInstant instant, boolean leaveStub) throws StandardException(Code)(Java Doc) protected void removePage(BaseContainerHandle handle, BasePage page) throws StandardException(Code)(Java Doc) public boolean requestCompatible(Object requestedQualifier, Object grantedQualifier)(Code)(Java Doc) protected void setCommittedDropState(boolean isCommittedDrop)(Code)(Java Doc) protected void setDroppedState(boolean isDropped)(Code)(Java Doc) abstract public void setEstimatedRowCount(long count, int flag) throws StandardException(Code)(Java Doc) protected void setReusableRecordIdState(boolean isReusableRecordId)(Code)(Java Doc) protected void truncate(BaseContainerHandle handle) throws StandardException(Code)(Java Doc) abstract protected void truncatePages(long lastValidPagenum) throws StandardException(Code)(Java Doc) public void unlockEvent(Latch lockInfo)(Code)(Java Doc) protected boolean use(BaseContainerHandle handle, boolean forUpdate, boolean droppedOK) throws StandardException(Code)(Java Doc)
|
|
|