Class D_BTreeController
- java.lang.Object
-
- org.apache.derby.iapi.services.diag.DiagnosticableGeneric
-
- org.apache.derby.impl.store.access.btree.D_BTreeController
-
- All Implemented Interfaces:
Diagnosticable
- Direct Known Subclasses:
D_B2IController
public class D_BTreeController extends DiagnosticableGeneric
-
-
Field Summary
-
Fields inherited from class org.apache.derby.iapi.services.diag.DiagnosticableGeneric
diag_object
-
-
Constructor Summary
Constructors Constructor Description D_BTreeController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
diag()
Default implementation of diagnostic on the object.private static void
diag_level(OpenBTree open_btree, ControlRow control_row, java.util.Properties prop, LevelInfo[] level_info)
private static java.lang.String
diag_onelevel(java.util.Properties prop, LevelInfo li)
private static void
diag_page(OpenBTree open_btree, ControlRow control_row, java.util.Properties prop, LevelInfo[] level_info)
private static java.lang.String
diag_tabulate(java.util.Properties prop, LevelInfo[] level_info)
void
init(java.lang.Object obj)
private static java.lang.String
olddiag_tabulate(java.util.Properties prop, LevelInfo[] level_info)
private static java.lang.String
out_summary(java.lang.String hdr, long value, double ratio, java.lang.String ratio_desc)
-
Methods inherited from class org.apache.derby.iapi.services.diag.DiagnosticableGeneric
diag_detail
-
-
-
-
Method Detail
-
diag_page
private static void diag_page(OpenBTree open_btree, ControlRow control_row, java.util.Properties prop, LevelInfo[] level_info) throws StandardException
- Throws:
StandardException
-
diag_level
private static void diag_level(OpenBTree open_btree, ControlRow control_row, java.util.Properties prop, LevelInfo[] level_info) throws StandardException
- Throws:
StandardException
-
out_summary
private static java.lang.String out_summary(java.lang.String hdr, long value, double ratio, java.lang.String ratio_desc)
-
diag_onelevel
private static java.lang.String diag_onelevel(java.util.Properties prop, LevelInfo li)
-
diag_tabulate
private static java.lang.String diag_tabulate(java.util.Properties prop, LevelInfo[] level_info)
-
olddiag_tabulate
private static java.lang.String olddiag_tabulate(java.util.Properties prop, LevelInfo[] level_info)
-
init
public void init(java.lang.Object obj)
- Specified by:
init
in interfaceDiagnosticable
- Overrides:
init
in classDiagnosticableGeneric
-
diag
public java.lang.String diag() throws StandardException
Default implementation of diagnostic on the object.This routine returns a string with whatever diagnostic information you would like to provide about this object.
This routine returns a summary table of information about pages in each level of the btree. It tells the height of the tree, the average free and reserved bytes per level, and the page size.
- Specified by:
diag
in interfaceDiagnosticable
- Overrides:
diag
in classDiagnosticableGeneric
- Returns:
- A string with diagnostic information about the object.
- Throws:
StandardException
- Standard Derby exception policy
-
-