コード例 #1
0
        public Transaction(Voron.Impl.Transaction voronTransaction, string nodeTreeName, string edgesTreeName, string disconnectedNodesTreeName)
        {
            if (voronTransaction == null)
                throw new ArgumentNullException("voronTransaction");
            VoronTransaction = voronTransaction;

            NodeTree = voronTransaction.ReadTree(nodeTreeName);
            EdgeTree = voronTransaction.ReadTree(edgesTreeName);
            DisconnectedNodeTree = voronTransaction.ReadTree(disconnectedNodesTreeName);
        }
コード例 #2
0
ファイル: Transaction.cs プロジェクト: josephi/Voron.Graph
 public Transaction(Voron.Impl.Transaction voronTransaction, 
     string nodeTreeName, 
     string edgesTreeName, 
     string disconnectedNodesTreeName,
     string keyByEtagTreeName,
     string graphMetadataKey,
     long nodeCount)
 {
     _isDisposed = false;
     if (voronTransaction == null)
         throw new ArgumentNullException("voronTransaction");
     VoronTransaction = voronTransaction;
     _nodeCount = nodeCount;
     NodeTree = voronTransaction.ReadTree(nodeTreeName);
     EdgeTree = voronTransaction.ReadTree(edgesTreeName);
     DisconnectedNodeTree = voronTransaction.ReadTree(disconnectedNodesTreeName);
     KeyByEtagTree = voronTransaction.ReadTree(keyByEtagTreeName);
     SystemTree = voronTransaction.State.Root;
     GraphMetadataKey = graphMetadataKey;
 }