public static RID searchEqual(Index index, byte[] key) throws Exception { RID off = new RID(); try { // Index inx=CatalogManager.getIndex(index.indexName); BPlusTree thisTree = new BPlusTree(index, index.rootNum); /*This place has bugs.*/ off = thisTree.searchKey(key); return off; } catch (NullPointerException e) { System.err.println(); return null; } }