コード例 #1
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
 public new static HBplusTreeBytes Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int prefixLength, int cultureId,
                                              int nodesize, int buffersize)
 {
     return(new HBplusTreeBytes(
                BplusTreeBytes.Initialize(treefile, blockfile, prefixLength, cultureId, nodesize, buffersize),
                prefixLength));
 }
コード例 #2
0
 public static XBplusTreeBytes Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int PrefixLength, int CultureId,
                                          int nodesize, int buffersize)
 {
     return(new XBplusTreeBytes(
                BplusTreeBytes.Initialize(treefile, blockfile, PrefixLength, CultureId, nodesize, buffersize),
                PrefixLength));
 }
コード例 #3
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
 public new static HBplusTreeBytes Initialize(string treefileName, string blockfileName, int prefixLength, int cultureId,
                                              int nodesize, int buffersize)
 {
     return(new HBplusTreeBytes(
                BplusTreeBytes.Initialize(treefileName, blockfileName, prefixLength, cultureId, nodesize, buffersize),
                prefixLength));
 }
コード例 #4
0
        public static XBplusTreeBytes ReadOnly(string treefileName, string blockfileName)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReadOnly(treefileName, blockfileName);
            int            prefixLength = tree.MaxKeyLength();

            return(new XBplusTreeBytes(tree, prefixLength));
        }
コード例 #5
0
        public static BplusTree Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int keyLength, int cultureId,
                                           int nodesize, int buffersize)
        {
            BplusTreeBytes tree = BplusTreeBytes.Initialize(treefile, blockfile, keyLength, cultureId, nodesize, buffersize);

            return(new BplusTree(tree));
        }
コード例 #6
0
        public static BplusTree Initialize(string treefileName, string blockfileName, int keyLength, int cultureId,
                                           int nodesize, int buffersize)
        {
            BplusTreeBytes tree = BplusTreeBytes.Initialize(treefileName, blockfileName, keyLength, cultureId, nodesize, buffersize);

            return(new BplusTree(tree));
        }
コード例 #7
0
 public static XBplusTreeBytes Initialize(string treefileName, string blockfileName, int PrefixLength, int CultureId,
                                          int nodesize, int buffersize)
 {
     return(new XBplusTreeBytes(
                BplusTreeBytes.Initialize(treefileName, blockfileName, PrefixLength, CultureId, nodesize, buffersize),
                PrefixLength));
 }
コード例 #8
0
        public static XBplusTreeBytes ReOpen(System.IO.Stream treefile, System.IO.Stream blockfile)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReOpen(treefile, blockfile);
            int            prefixLength = tree.MaxKeyLength();

            return(new XBplusTreeBytes(tree, prefixLength));
        }
コード例 #9
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
        public new static HBplusTreeBytes ReOpen(string treefileName, string blockfileName)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReOpen(treefileName, blockfileName);
            int            prefixLength = tree.MaxKeyLength();

            return(new HBplusTreeBytes(tree, prefixLength));
        }
コード例 #10
0
 public XBplusTreeBytes(BplusTreeBytes tree, int prefixLength)
 {
     if (prefixLength < 3)
     {
         throw new BplusTreeException("prefix cannot be smaller than 3 :: " + prefixLength);
     }
     if (prefixLength > tree.MaxKeyLength())
     {
         throw new BplusTreeException("prefix length cannot exceed keylength for internal tree");
     }
     this.tree         = tree;
     this.PrefixLength = prefixLength;
 }
コード例 #11
0
        public static BplusTree ReadOnly(string treefileName, string blockfileName)
        {
            BplusTreeBytes tree = BplusTreeBytes.ReadOnly(treefileName, blockfileName);

            return(new BplusTree(tree));
        }
コード例 #12
0
        public static BplusTree ReOpen(System.IO.Stream treefile, System.IO.Stream blockfile)
        {
            BplusTreeBytes tree = BplusTreeBytes.ReOpen(treefile, blockfile);

            return(new BplusTree(tree));
        }
コード例 #13
0
        public static BplusTree Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int keyLength)
        {
            BplusTreeBytes tree = BplusTreeBytes.Initialize(treefile, blockfile, keyLength);

            return(new BplusTree(tree));
        }
コード例 #14
0
        public static BplusTree Initialize(string treefileName, string blockfileName, int keyLength)
        {
            BplusTreeBytes tree = BplusTreeBytes.Initialize(treefileName, blockfileName, keyLength);

            return(new BplusTree(tree));
        }
コード例 #15
0
 public static XBplusTreeBytes Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int PrefixLength)
 {
     return(new XBplusTreeBytes(
                BplusTreeBytes.Initialize(treefile, blockfile, PrefixLength),
                PrefixLength));
 }
コード例 #16
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
 public new static HBplusTreeBytes Initialize(string treefileName, string blockfileName, int prefixLength)
 {
     return(new HBplusTreeBytes(
                BplusTreeBytes.Initialize(treefileName, blockfileName, prefixLength),
                prefixLength));
 }
コード例 #17
0
 public static XBplusTreeBytes Initialize(string treefileName, string blockfileName, int PrefixLength)
 {
     return(new XBplusTreeBytes(
                BplusTreeBytes.Initialize(treefileName, blockfileName, PrefixLength),
                PrefixLength));
 }
コード例 #18
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
 public HBplusTreeBytes(BplusTreeBytes tree, int hashLength)
     : base(tree, hashLength)
 {
     // null out the culture context to use the naive comparison
     this.tree.NoCulture();
 }
コード例 #19
0
ファイル: HBplusTreeBytes.cs プロジェクト: jinyuttt/B-tree
 public new static HBplusTreeBytes Initialize(System.IO.Stream treefile, System.IO.Stream blockfile, int prefixLength)
 {
     return(new HBplusTreeBytes(
                BplusTreeBytes.Initialize(treefile, blockfile, prefixLength),
                prefixLength));
 }