MaxKeyLength() 공개 메소드

public MaxKeyLength ( ) : int
리턴 int
예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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;
 }
예제 #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;
 }