Top Description Fields Constructors Methods
org.apache.derby.impl.store.raw.data

public final Class CompressSpacePageOperation10_2

extends CompressSpacePageOperation
Class Inheritance
Imports
org.apache.derby.iapi.services.io.StoredFormatIds, .CompressedNumber, org.apache.derby.shared.common.error.StandardException, java.io.ObjectOutput, .IOException, .ObjectInput

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.

Field Summary

Inherited from org.apache.derby.impl.store.raw.data.CompressSpacePageOperation:
newHighestPagenum_pages_truncated

Constructor Summary

AccessConstructor and Description
pack-priv
CompressSpacePageOperation10_2(AllocPage allocPage, int highest_page, int num_truncated)

Constructors for This class:

public

Method Summary

Modifier and TypeMethod and Description
public int
public void
readExternal(ObjectInput
the stream to read data from in order to restore the object
in
)

Overrides org.apache.derby.impl.store.raw.data.CompressSpacePageOperation.readExternal.

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

public void
writeExternal(ObjectOutput
the stream to write the object to
out
)

Overrides org.apache.derby.impl.store.raw.data.CompressSpacePageOperation.writeExternal.

Implements java.io.Externalizable.writeExternal.

Public Methods of Formatable interface.

Inherited from org.apache.derby.impl.store.raw.data.CompressSpacePageOperation:
doMerestoreMetoStringundoMe

Constructor Detail

CompressSpacePageOperation10_2back to summary
pack-priv CompressSpacePageOperation10_2(AllocPage allocPage, int highest_page, int num_truncated) throws StandardException

Constructors for This class:

CompressSpacePageOperation10_2back to summary
public CompressSpacePageOperation10_2()

Method Detail

getTypeFormatIdback to summary
public int getTypeFormatId()

Overrides org.apache.derby.impl.store.raw.data.CompressSpacePageOperation.getTypeFormatId.

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Return my format identifier.

Returns:int

Doc from org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

The identifier. (A UUID stuffed in an array of 16 bytes).

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Overrides org.apache.derby.impl.store.raw.data.CompressSpacePageOperation.readExternal.

Implements java.io.Externalizable.readExternal.

Doc from java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Parameters
in:ObjectInput

the stream to read data from in order to restore the object

Exceptions
IOException:
error reading from log stream
ClassNotFoundException:
cannot read object from input
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Overrides org.apache.derby.impl.store.raw.data.CompressSpacePageOperation.writeExternal.

Implements java.io.Externalizable.writeExternal.

Public Methods of Formatable interface.

Parameters
out:ObjectOutput

Doc from java.io.Externalizable.writeExternal.

the stream to write the object to

Exceptions
IOException:

Doc from java.io.Externalizable.writeExternal.

Includes any I/O exceptions that may occur