Class CompressSpacePageOperation10_2
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.CompressSpacePageOperation
org.apache.derby.impl.store.raw.data.CompressSpacePageOperation10_2
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
,Loggable
,RePreparable
,Undoable
This class overrides the CompressSpacePageOperation class to write
CompressSpaceOperation Log Records that do not support negative values
for new_highest_page. No other changes are added to the superclass behavior.
This class ensures backward compatibility for Soft upgrades.
- See Also:
-
Field Summary
Fields inherited from class org.apache.derby.impl.store.raw.data.CompressSpacePageOperation
newHighestPage, num_pages_truncated
Fields inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation
containerHdl, foundHere, page
Fields inherited from interface org.apache.derby.iapi.store.raw.Loggable
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK
-
Constructor Summary
ConstructorsConstructorDescriptionCompressSpacePageOperation10_2
(AllocPage allocPage, int highest_page, int num_truncated) Constructors for This class: -
Method Summary
Modifier and TypeMethodDescriptionint
Return my format identifier.void
void
Public Methods of Formatable interface.Methods inherited from class org.apache.derby.impl.store.raw.data.CompressSpacePageOperation
doMe, restoreMe, toString, undoMe
Methods inherited from class org.apache.derby.impl.store.raw.data.PhysicalPageOperation
generateUndo
Methods inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation
findpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, getPreparedLog, group, needsRedo, reclaimPrepareLocks, releaseResource, resetPageNumber
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.derby.iapi.store.raw.Loggable
getPreparedLog, group, needsRedo, releaseResource
-
Constructor Details
-
CompressSpacePageOperation10_2
CompressSpacePageOperation10_2(AllocPage allocPage, int highest_page, int num_truncated) throws StandardException Constructors for This class:- Throws:
StandardException
-
CompressSpacePageOperation10_2
public CompressSpacePageOperation10_2()
-
-
Method Details
-
writeExternal
Public Methods of Formatable interface.- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classCompressSpacePageOperation
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classCompressSpacePageOperation
- Throws:
IOException
- error reading from log streamClassNotFoundException
- cannot read object from input
-
getTypeFormatId
public int getTypeFormatId()Return my format identifier.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Overrides:
getTypeFormatId
in classCompressSpacePageOperation
- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-