Exemplo n.º 1
0
 internal BTreeBranch(long transactionId, IBTreeNode node1, IBTreeNode node2)
 {
     TransactionId = transactionId;
     _children = new[] { node1, node2 };
     _keys = new[] { node2.GetLeftMostKey() };
     var leftCount = node1.CalcKeyCount();
     var rightCount = node2.CalcKeyCount();
     _pairCounts = new[] { leftCount, leftCount + rightCount };
 }
Exemplo n.º 2
0
        internal BTreeBranch(long transactionId, IBTreeNode node1, IBTreeNode node2)
        {
            TransactionId = transactionId;
            _children     = new[] { node1, node2 };
            _keys         = new[] { node2.GetLeftMostKey() };
            var leftCount  = node1.CalcKeyCount();
            var rightCount = node2.CalcKeyCount();

            _pairCounts = new[] { leftCount, leftCount + rightCount };
        }
Exemplo n.º 3
0
 public byte[] GetLeftMostKey()
 {
     return(_rootNode.GetLeftMostKey());
 }