public BPlusTreeIntToString60 read() throws IOException { Map<Integer, Node> nodes = new HashMap<Integer, Node>(); Block block = new Block(file.read(0)); int maxSize = Bytes.byteToInt(block.getByte(1)); int rootBlock = Bytes.bytesToInt(block.getBytes(2, 4)); // readNode(maxSize, rootBlock, blockToNode) file.close(); return BPlusTreeIntToString60.fromBytes(block, nodes); }
public void write(BPlusTreeIntToString60 tree) { this.maxSize = tree.getMaxSize(); }