Class D_StoredPage
- java.lang.Object
-
- org.apache.derby.impl.store.raw.data.D_StoredPage
-
- All Implemented Interfaces:
Diagnosticable
public class D_StoredPage extends java.lang.Object implements Diagnosticable
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
Fields Modifier and Type Field Description protected StoredPagepage
-
Constructor Summary
Constructors Constructor Description D_StoredPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckSlotTable(java.io.PrintStream out)Checks the slot table.java.lang.Stringdiag()Provide a string dump of the StoredPage.voiddiag_detail(java.util.Properties prop)Provide detailed diagnostic information about a StoredPage.voidinit(java.lang.Object obj)java.lang.StringpageHeaderToString()
-
-
-
Field Detail
-
page
protected StoredPage page
-
-
Method Detail
-
init
public void init(java.lang.Object obj)
- Specified by:
initin interfaceDiagnosticable
-
diag
public java.lang.String diag() throws StandardExceptionProvide 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.
- Specified by:
diagin interfaceDiagnosticable- Returns:
- string dump of the StoredPage
- Throws:
StandardException- Standard exception policy.
-
diag_detail
public void diag_detail(java.util.Properties prop) throws StandardExceptionProvide 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.
- Specified by:
diag_detailin interfaceDiagnosticable- Throws:
StandardException- Standard exception policy.
-
checkSlotTable
public boolean checkSlotTable(java.io.PrintStream out) throws StandardException, java.io.IOExceptionChecks the slot table.1) checks the number of slot entries matches the record count 2) checks the slot table lengths match the field lengths
- Throws:
StandardException- Standard exception policy.java.io.IOException
-
pageHeaderToString
public java.lang.String pageHeaderToString()
-
-