public override StarTree.Host.Database.Snapshot queryMerges(StarTree.Host.Database.Revision rev) { Converter.Revision revCon = rev; StarTree.Host.Database.Snapshot sn = new StarTree.Host.Database.Snapshot(this); byte[] bytes = _plugin.queryMerges(revCon); sn.load(bytes); return(sn); }
public override StarTree.Host.Database.Snapshot getBranch(string branch, long limit) { StarTree.Host.Database.Snapshot snapshot = new StarTree.Host.Database.Snapshot(this); byte[] bytes = _plugin.getBranch(branch, limit); snapshot.load(bytes); return(snapshot); }
internal static void Save(StarTree.Host.Database.Snapshot snapshot, Graph graph) { foreach (object val in graph.NodeMap.Values) { DrawingObject obj = val as DrawingObject; if (obj != null) { Revision r = obj.UserData as Revision; if (r != null) { snapshot.add(r); } } } }