コード例 #1
0
 public Tree(LowLevelTransaction llt, Transaction tx, TreeMutableState state)
 {
     _llt = llt;
     _tx  = tx;
     _recentlyFoundPages = new RecentlyFoundTreePages(llt.Flags == TransactionFlags.Read ? 8 : 2);
     _state = new TreeMutableState(llt);
     _state = state;
 }
コード例 #2
0
 private Tree(LowLevelTransaction llt, Transaction tx, long root)
 {
     _llt = llt;
     _tx  = tx;
     _recentlyFoundPages = new RecentlyFoundTreePages(llt.Flags == TransactionFlags.Read ? 8 : 2);
     _state = new TreeMutableState(llt)
     {
         RootPageNumber = root
     };
 }
コード例 #3
0
ファイル: Tree.cs プロジェクト: Danielle9897/ravendb
 public Tree(LowLevelTransaction llt, Transaction tx, TreeMutableState state)
 {
     _llt = llt;
     _tx  = tx;
     _recentlyFoundPages = new RecentlyFoundTreePages(llt.Flags == TransactionFlags.Read ? 8 : 2);
     _isPageLocatorOwned = true;
     _pageLocator        = llt.PersistentContext.AllocatePageLocator(llt);
     _state = new TreeMutableState(llt);
     _state = state;
 }
コード例 #4
0
ファイル: Tree.cs プロジェクト: Danielle9897/ravendb
        private Tree(LowLevelTransaction llt, Transaction tx, long root, PageLocator pageLocator = null)
        {
            _llt = llt;
            _tx  = tx;
            _recentlyFoundPages = new RecentlyFoundTreePages(llt.Flags == TransactionFlags.Read ? 8 : 2);
            _isPageLocatorOwned = pageLocator == null;
            _pageLocator        = pageLocator ?? llt.PersistentContext.AllocatePageLocator(llt);

            _state = new TreeMutableState(llt)
            {
                RootPageNumber = root
            };
        }
コード例 #5
0
        private Tree(LowLevelTransaction llt, Transaction tx, long root, Slice name, bool isIndexTree, NewPageAllocator newPageAllocator)
        {
            _llt        = llt;
            _tx         = tx;
            IsIndexTree = isIndexTree;
            Name        = name;

            if (newPageAllocator != null)
            {
                SetNewPageAllocator(newPageAllocator);
            }

            _recentlyFoundPages = new RecentlyFoundTreePages(llt.Flags == TransactionFlags.Read ? 8 : 2);

            _state = new TreeMutableState(llt)
            {
                RootPageNumber = root
            };
        }