예제 #1
0
 public BTreeAlgorithm(File.IFile file,
                       IComparer comparer,
                       string name,
                       IDataBlockDriver dataBlockDriver
                       )
     : this(file, comparer, name, null, false)
 {
 }
예제 #2
0
        public BTreeAlgorithm(File.IFile file,
                              IComparer comparer,
                              string name,
                              IDataBlockDriver dataBlockDriver,
                              bool isDataInKeySegment
                              )
        {
            this.Name = name;
            var p = new[]
            {
                new KeyValuePair <string, object>("comparer", comparer),
                new KeyValuePair <string, object>("DataBlockDriver",
                                                  dataBlockDriver)
            };

            IsDataInKeySegment = isDataInKeySegment;
            Initialize(file, p);
        }
예제 #3
0
 /// <summary>
 /// Binds the DataDriver to the MRUClient(specified by Parent)
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="dataDriver"></param>
 public void SetDataStores(IMruClient parent, IDataBlockDriver dataDriver)
 {
     mruManager.DataDriver = dataDriver;
     mruManager.Collection = parent;
 }