MaxKeyLength() public method

public MaxKeyLength ( ) : int
return int
Exemplo n.º 1
0
        public static xBplusTreeBytes ReadOnly(string treefileName, string blockfileName)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReadOnly(treefileName, blockfileName);
            int            prefixLength = tree.MaxKeyLength();

            return(new xBplusTreeBytes(tree, prefixLength));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
0
        public new static hBplusTreeBytes ReOpen(string treefileName, string blockfileName)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReOpen(treefileName, blockfileName);
            int            prefixLength = tree.MaxKeyLength();

            return(new hBplusTreeBytes(tree, prefixLength));
        }
Exemplo n.º 4
0
        public new static hBplusTreeBytes ReOpen(Stream treefile, Stream blockfile)
        {
            BplusTreeBytes tree         = BplusTreeBytes.ReOpen(treefile, blockfile);
            int            prefixLength = tree.MaxKeyLength();

            return(new hBplusTreeBytes(tree, prefixLength));
        }
Exemplo n.º 5
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;
 }
Exemplo n.º 6
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;
 }