public Record(int index, KeyValuePair <byte[], byte[]> pair, IDataViz viz) { Index = index; key = pair.Key; value = pair.Value; _viz = viz; }
public DBController(string journalFile, IEnumerable<IDataVizFactory> vizFactories) { string path = Path.GetDirectoryName(journalFile); _db = new KeyValueStore(path); foreach (var vf in vizFactories) { var v = vf.GetVisualizer(_db); if (v != null) { _viz = v; break; } } if (_viz == null) _viz = new ByteViz(); }
public Record(int index, KeyValuePair<byte[], byte[]> pair, IDataViz viz) { Index = index; key = pair.Key; value = pair.Value; _viz = viz; }