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); }
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; }