Class InvalidatePageOperation
java.lang.Object
org.apache.derby.impl.store.raw.data.PageBasicOperation
org.apache.derby.impl.store.raw.data.PhysicalPageOperation
org.apache.derby.impl.store.raw.data.InvalidatePageOperation
- All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, Loggable, RePreparable, Undoable
Represents invalidating a page due to deallocation.
This operation invalidates the page that is being deallocated, as opposed
to deallocatePage that happens on the alloc page.
- See Also:
-
Field Summary
Fields inherited from class PageBasicOperation
containerHdl, foundHere, pageFields inherited from interface Loggable
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoMe(Transaction xact, LogInstant instant, LimitObjectInput in) Mark the page as being invalidatedintReturn my format identifier.voidRead this invoidrestoreMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) restore the before image of the pagetoString()voidundoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) Mark the page as being validvoidMethods inherited from class PhysicalPageOperation
generateUndoMethods inherited from class PageBasicOperation
findpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, getPreparedLog, group, needsRedo, reclaimPrepareLocks, releaseResource, resetPageNumberMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Loggable
getPreparedLog, group, needsRedo, releaseResource
-
Constructor Details
-
InvalidatePageOperation
InvalidatePageOperation(BasePage page) -
InvalidatePageOperation
public InvalidatePageOperation()
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPageBasicOperation- Throws:
IOException
-
readExternal
Read this in- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPageBasicOperation- Throws:
IOException- error reading from log streamClassNotFoundException- log stream corrupted
-
getTypeFormatId
public int getTypeFormatId()Return my format identifier.- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
doMe
public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Mark the page as being invalidated- Parameters:
xact- the Transactioninstant- the log instant of this operationin- optional data- Throws:
IOException- Can be thrown by any of the methods of ObjectInput.StandardException- Standard Derby policy.- See Also:
-
undoMe
public void undoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException, IOException Mark the page as being valid- Specified by:
undoMein classPhysicalPageOperation- Parameters:
xact- the Transaction doing the rollbackundoPage- the page to rollback changes onCLRInstant- the log instant of this (PageUndo) operationin- optional data for the rollback operation- Throws:
StandardException- Thrown by methods I callIOException- Thrown by methods I call- See Also:
-
restoreMe
public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException, IOException restore the before image of the page- Specified by:
restoreMein classPageBasicOperation- Parameters:
xact- the Transaction doing the rollbackundoPage- the page to rollback changes onCLRInstant- the log instant of this (PageUndo) operationin- optional data for the rollback operation- Throws:
StandardException- Standard Derby Error PolicyIOException- problem reading the complete log record from the input stream
-
toString
- Overrides:
toStringin classPageBasicOperation
-