Top Fields Constructors Methods
org.apache.derby.impl.store.access.btree

public Class D_BTreeController

Additional top-level class in compilation unit: LevelInfo.

extends DiagnosticableGeneric
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.store.access.btree.index.D_B2IController
Imports
org.apache.derby.iapi.services.diag.DiagnosticableGeneric, .DiagnosticUtil, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.raw.Page, java.util.Properties

Field Summary

Inherited from org.apache.derby.iapi.services.diag.DiagnosticableGeneric:
diag_object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

A string with diagnostic information about the object.
diag
()

Overrides org.apache.derby.iapi.services.diag.DiagnosticableGeneric.diag.

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

Default implementation of diagnostic on the object.

private static void
diag_level(OpenBTree open_btree, ControlRow control_row, Properties prop, LevelInfo[] level_info)

private static String
private static void
diag_page(OpenBTree open_btree, ControlRow control_row, Properties prop, LevelInfo[] level_info)

private static String
diag_tabulate(Properties prop, LevelInfo[] level_info)

public void
private static String
private static String
out_summary(String hdr, long value, double ratio, String ratio_desc)

Inherited from org.apache.derby.iapi.services.diag.DiagnosticableGeneric:
diag_detail

Constructor Detail

D_BTreeControllerback to summary
public D_BTreeController()

Method Detail

diagback to summary
public String diag() throws StandardException

Overrides org.apache.derby.iapi.services.diag.DiagnosticableGeneric.diag.

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

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.

Returns:String

A string with diagnostic information about the object.

Exceptions
StandardException:
Standard Derby exception policy
diag_levelback to summary
private static void diag_level(OpenBTree open_btree, ControlRow control_row, Properties prop, LevelInfo[] level_info) throws StandardException
diag_onelevelback to summary
private static String diag_onelevel(Properties prop, LevelInfo li)
diag_pageback to summary
private static void diag_page(OpenBTree open_btree, ControlRow control_row, Properties prop, LevelInfo[] level_info) throws StandardException
diag_tabulateback to summary
private static String diag_tabulate(Properties prop, LevelInfo[] level_info)
initback to summary
public void init(Object obj)

Overrides org.apache.derby.iapi.services.diag.DiagnosticableGeneric.init.

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

olddiag_tabulateback to summary
private static String olddiag_tabulate(Properties prop, LevelInfo[] level_info)
out_summaryback to summary
private static String out_summary(String hdr, long value, double ratio, String ratio_desc)