Пример #1
0
        private void AddRowToRowIndex(TableContextRowID rowID)
        {
            // Add the row to the list
            m_rowIndex.Add(rowID);
            // add the row to the BTH
            BTreeOnHeap <TableContextRowID> bTreeOnHeap = new BTreeOnHeap <TableContextRowID>(m_heap, m_tcInfo.hidRowIndex);

            bTreeOnHeap.AddRecord(rowID);
        }
Пример #2
0
        private void SwitchRowsInRowIndex(int rowIndex1, int rowIndex2)
        {
            TableContextRowID record1 = m_rowIndex[rowIndex1];
            TableContextRowID record2 = m_rowIndex[rowIndex2];
            uint temp = record1.dwRowIndex;

            record1.dwRowIndex = record2.dwRowIndex;
            record2.dwRowIndex = temp;

            m_rowIndex[rowIndex1] = record2;
            m_rowIndex[rowIndex2] = record1;

            BTreeOnHeap <TableContextRowID> bTreeOnHeap = new BTreeOnHeap <TableContextRowID>(m_heap, m_tcInfo.hidRowIndex);

            bTreeOnHeap.UpdateRecord(record1);
            bTreeOnHeap.UpdateRecord(record2);
        }
Пример #3
0
        private void AddRowToRowIndex(uint rowID, int rowIndex)
        {
            TableContextRowID newRowID = new TableContextRowID(rowID, (uint)rowIndex);

            AddRowToRowIndex(newRowID);
        }
Пример #4
0
 public static int CompareByRowIndex(TableContextRowID a, TableContextRowID b)
 {
     return(a.dwRowIndex.CompareTo(b.dwRowIndex));
 }