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

public Class D_StoredPage

extends Object
implements Diagnosticable
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.diag.Diagnosticable
Imports
org.apache.derby.iapi.services.diag.Diagnosticable, .DiagnosticableGeneric, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.access.Qualifier, org.apache.derby.iapi.store.raw.FetchDescriptor, .Page, .RecordHandle, org.apache.derby.iapi.types.DataValueDescriptor, java.util.Properties, java.io.PrintStream, .IOException, org.apache.derby.iapi.services.io.FormatableBitSet, .CounterOutputStream, .NullOutputStream

The D_StoredPage class provides diagnostic information about the StoredPage class. Currently this info includes: o a dump of the page. o page size of the page. o bytes free on the page. o bytes reserved on the page.

Field Summary

Modifier and TypeField and Description
protected StoredPage

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
checkSlotTable(PrintStream out)

Checks the slot table.

public String

Returns:

string dump of the StoredPage
diag
()

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag.

Provide a string dump of the StoredPage.

public void
diag_detail(Properties
In/out argument for passing information
prop
)

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

Provide detailed diagnostic information about a StoredPage.

public void
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pageback to summary
protected StoredPage page

Constructor Detail

D_StoredPageback to summary
public D_StoredPage()

Method Detail

checkSlotTableback to summary
public boolean checkSlotTable(PrintStream out) throws StandardException, IOException

Checks the slot table.

1) checks the number of slot entries matches the record count 2) checks the slot table lengths match the field lengths

Exceptions
StandardException:
Standard exception policy.
diagback to summary
public String diag() throws StandardException

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag.

Provide a string dump of the StoredPage.

RESOLVE - once the "Diagnostic" interface is accepted move the string dumping code into this routine from it's current place in the StoredPage code.

Returns:String

string dump of the StoredPage

Exceptions
StandardException:
Standard exception policy.
diag_detailback to summary
public void diag_detail(Properties prop) throws StandardException

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

Provide detailed diagnostic information about a StoredPage.

Currently supports 3 types of information: Page.DIAG_PAGE_SIZE - page size. Page.DIAG_BTYES_FREE - # of free bytes on the page. Page.DIAG_BYTES_RESERVED - # of reserved bytes on the page.

Parameters
prop:Properties

Doc from org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

In/out argument for passing information

Exceptions
StandardException:
Standard exception policy.
initback to summary
public void init(Object obj)

Implements org.apache.derby.iapi.services.diag.Diagnosticable.init.

pageHeaderToStringback to summary
public String pageHeaderToString()