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:
java.io.Externalizable,java.io.Serializable,Formatable,TypedFormat,Loggable,RePreparable,Undoable
public final class CompressSpacePageOperation10_2 extends CompressSpacePageOperation
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:
- Serialized Form
-
-
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
Constructors Constructor Description CompressSpacePageOperation10_2()CompressSpacePageOperation10_2(AllocPage allocPage, int highest_page, int num_truncated)Constructors for This class:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTypeFormatId()Return my format identifier.voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.ObjectOutput out)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 Detail
-
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 Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionPublic Methods of Formatable interface.- Specified by:
writeExternalin interfacejava.io.Externalizable- Overrides:
writeExternalin classCompressSpacePageOperation- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Overrides:
readExternalin classCompressSpacePageOperation- Throws:
java.io.IOException- error reading from log streamjava.lang.ClassNotFoundException- cannot read object from input
-
getTypeFormatId
public int getTypeFormatId()
Return my format identifier.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Overrides:
getTypeFormatIdin classCompressSpacePageOperation- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
-