Exemplo n.º 1
0
 public void LoadCache()
 {
     if (treeCache == null)
     {
         if (File.Exists(treefile) && File.Exists(datafile))
         {
             treeCache = new SerializedTree(hBplusTreeBytes.ReOpen(treefile, datafile));
         }
         else
         {
             treeCache = new SerializedTree(hBplusTreeBytes.Initialize(treefile, datafile, 500));
         }
         treeCache.SetFootPrintLimit(10);
     }
 }
Exemplo n.º 2
0
        public void LoadCache()
        {
            if (_treeCache != null)
            {
                return;
            }

            if (File.Exists(_treefile) && File.Exists(_datafile))
            {
                _treeCache = new SerializedTree(hBplusTreeBytes.ReOpen(_treefile, _datafile));
            }
            else
            {
                _treeCache = new SerializedTree(hBplusTreeBytes.Initialize(_treefile, _datafile, 500));
            }
            _treeCache.SetFootPrintLimit(10);
        }