@Override public void close() throws IOException { super.close(); // We need to free up the rest of the page chain.. if (current.getType() == Page.PAGE_PART_TYPE) { free(current.getNext()); } current.makePageEnd(pos, getWriteTransactionId()); // make visible as end page pageFile.addToCache(current); // Write the header.. pos = 0; current.write(this); Transaction.this.write(current, buf); } };
addToCache(page); DataByteArrayOutputStream out = new DataByteArrayOutputStream(pageSize); page.write(out);
pageFile.addToCache(current);
pageFile.addToCache(copy);
pageFile.addToCache(page);
pageFile.addToCache(page.copy());
@Override public void close() throws IOException { super.close(); // We need to free up the rest of the page chain.. if (current.getType() == Page.PAGE_PART_TYPE) { free(current.getNext()); } current.makePageEnd(pos, getWriteTransactionId()); // make visible as end page pageFile.addToCache(current); // Write the header.. pos = 0; current.write(this); Transaction.this.write(current, buf); } };
@Override public void close() throws IOException { super.close(); // We need to free up the rest of the page chain.. if (current.getType() == Page.PAGE_PART_TYPE) { free(current.getNext()); } current.makePageEnd(pos, getWriteTransactionId()); // make visible as end page pageFile.addToCache(current); // Write the header.. pos = 0; current.write(this); Transaction.this.write(current, buf); } };
@Override public void close() throws IOException { super.close(); // We need to free up the rest of the page chain.. if (current.getType() == Page.PAGE_PART_TYPE) { free(current.getNext()); } current.makePageEnd(pos, getWriteTransactionId()); // make visible as end page pageFile.addToCache(current); // Write the header.. pos = 0; current.write(this); Transaction.this.write(current, buf); } };
addToCache(page); DataByteArrayOutputStream out = new DataByteArrayOutputStream(pageSize); page.write(out);
addToCache(page); DataByteArrayOutputStream out = new DataByteArrayOutputStream(pageSize); page.write(out);
addToCache(page); DataByteArrayOutputStream out = new DataByteArrayOutputStream(pageSize); page.write(out);
pageFile.addToCache(current);
pageFile.addToCache(current);
pageFile.addToCache(current);
pageFile.addToCache(page);
pageFile.addToCache(page);
pageFile.addToCache(page.copy());
pageFile.addToCache(page.copy());
pageFile.addToCache(page.copy());