Exemplo n.º 1
0
 public Record(int index, KeyValuePair <byte[], byte[]> pair, IDataViz viz)
 {
     Index = index;
     key   = pair.Key;
     value = pair.Value;
     _viz  = viz;
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public Record(int index, KeyValuePair<byte[], byte[]> pair, IDataViz viz)
 {
     Index = index;
     key = pair.Key;
     value = pair.Value;
     _viz = viz;
 }