org.apache.derby.impl.store.raw.data
Class CompressSpacePageOperation10_2

java.lang.Object
  extended by org.apache.derby.impl.store.raw.data.PageBasicOperation
      extended by org.apache.derby.impl.store.raw.data.PhysicalPageOperation
          extended by org.apache.derby.impl.store.raw.data.CompressSpacePageOperation
              extended by 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 backword 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
CompressSpacePageOperation10_2()
           
CompressSpacePageOperation10_2(AllocPage allocPage, int highest_page, int num_truncated)
          Constructors for This class:
 
Method Summary
 int getTypeFormatId()
          Return my format identifier.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(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

public 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.IOException
Public Methods of Formatable interface.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class CompressSpacePageOperation
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class CompressSpacePageOperation
Throws:
java.io.IOException - error reading from log stream
java.lang.ClassNotFoundException - cannot read object from input

getTypeFormatId

public int getTypeFormatId()
Return my format identifier.

Specified by:
getTypeFormatId in interface TypedFormat
Overrides:
getTypeFormatId in class CompressSpacePageOperation
Returns:
The identifier. (A UUID stuffed in an array of 16 bytes).

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.