Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

void cbd500_Tree::bd500Print ( const char *  Title = NULL  )  const

function: bd500Print description: The PathInfo is written into the KernelTrace. arguments: Title [in]

Definition at line 702 of file vbd500.cpp.

References cbd600_Node::m_pNode.

Referenced by bd500LeftNeighborId(), bd500PrevNode(), bd520LeafOverflow(), and bd520LeafUnderFlow().

{
    const tsp00_Int4 LineSize = sizeof(tsp00_Line)+1;
    char             Line [LineSize ];
//  tsp00_Int4       LineLen;

    if ( NULL != Title )
        bd500_WriteTrace (Title, (tsp00_Int4)strlen(Title));

    if ( m_Node.m_pNode != NULL )
    {
        if ( pt2InvSubtree_egg00 == m_Node.m_pNode->nd_pt2() )
            bd500_WriteTrace ("*** InvTree (Sub) ***", 21);
        else
            bd500_WriteTrace ("*** InvTree       ***", 21);
    }
    else
        bd500_WriteTrace ("*** Tree          ***", 21);

    sp77sprintf (Line, LineSize, "* CurrLevel %d, CurrNode %d, LeftMostIdNLL %d",
                 m_CurrLevel, (m_Node.m_pNode!=NULL)?m_Node.m_pNode->nd_id():NIL_PAGE_NO_GG00,
                 m_LeftMostIdNextLowerLevel);
    bd500_WriteTrace (Line, (tsp00_Int4)strlen(Line));

    bd500_WriteTrace ("*-------+--------------+------------+----------+----------+------------+", 72);
    bd500_WriteTrace ("* Level | LeftNeighbor |       Node | RecIndex | MxRecIdx |  LeafCount |", 72);
    for (tsp00_Int4 Level = m_RootLevel; Level >= LEAF_LEVEL_BD00; --Level)
    {
        sp77sprintf (Line, LineSize, "* %5d | %10d   | %10d | %8d | %8d | %10d |",
                     Level, m_PathInfo [Level].piLeftId_bd500, m_PathInfo [Level].piId_bd500,
                     m_PathInfo [Level].piSubNodeRecIndex_bd500,
                     m_PathInfo [Level].piMaxRecIndex_bd500, m_PathInfo [Level].piLeafCount_bd500);
        bd500_WriteTrace (Line, (tsp00_Int4)strlen(Line));
    }
    bd500_WriteTrace ("*-------+--------------+------------+----------+----------+------------+", 72);
}


Generated by  Doxygen 1.6.0   Back to index