synchronized MessageStoreStatistics get(Transaction tx) throws IOException { load(tx); return page.get(); }
metadata = metadataPage.get(); metadata.page = metadataPage;
metadata = metadataPage.get(); metadata.page = metadataPage;
private HashBin<Key,Value> getBin(Transaction tx, int i, long basePage) throws IOException { Page<HashBin<Key, Value>> page = tx.load(basePage + i, hashBinMarshaller); HashBin<Key, Value> rc = page.get(); rc.setPage(page); return rc; }
metadata = metadataPage.get(); metadata.page = metadataPage;
ListNode<Key,Value> loadNode(Transaction tx, long pageId) throws IOException { Page<ListNode<Key,Value>> page = tx.load(pageId, marshaller); ListNode<Key, Value> node = page.get(); node.setPage(page); node.setContainingList(this); return node; }
BTreeNode<Key,Value> loadNode(Transaction tx, long pageId, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> page = tx.load(pageId, marshaller); BTreeNode<Key, Value> node = page.get(); node.setPage(page); node.setParent(parent); return node; }
/** * * @param page * the page to write. The Page object must be fully populated with a valid pageId, type, and data. * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to write the data. * @param overflow * If true, then if the page data marshalls to a bigger size than can fit in one page, then additional * overflow pages are automatically allocated and chained to this page to store all the data. If false, * and the overflow condition would occur, then the PageOverflowIOException is thrown. * @throws IOException * If an disk error occurred. * @throws PageOverflowIOException * If the page data marshalls to size larger than maximum page size and overflow was false. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> void store(Page<T> page, Marshaller<T> marshaller, final boolean overflow) throws IOException { DataByteArrayOutputStream out = (DataByteArrayOutputStream)openOutputStream(page, overflow); if (marshaller != null) { marshaller.writePayload(page.get(), out); } out.close(); }
private HashBin<Key,Value> getBin(Transaction tx, int i, long basePage) throws IOException { Page<HashBin<Key, Value>> page = tx.load(basePage + i, hashBinMarshaller); HashBin<Key, Value> rc = page.get(); rc.setPage(page); return rc; }
private HashBin<Key,Value> getBin(Transaction tx, int i, long basePage) throws IOException { Page<HashBin<Key, Value>> page = tx.load(basePage + i, hashBinMarshaller); HashBin<Key, Value> rc = page.get(); rc.setPage(page); return rc; }
private HashBin<Key,Value> getBin(Transaction tx, int i, long basePage) throws IOException { Page<HashBin<Key, Value>> page = tx.load(basePage + i, hashBinMarshaller); HashBin<Key, Value> rc = page.get(); rc.setPage(page); return rc; }
BTreeNode<Key,Value> loadNode(Transaction tx, long pageId, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> page = tx.load(pageId, marshaller); BTreeNode<Key, Value> node = page.get(); node.setPage(page); node.setParent(parent); return node; }
ListNode<Key,Value> loadNode(Transaction tx, long pageId) throws IOException { Page<ListNode<Key,Value>> page = tx.load(pageId, marshaller); ListNode<Key, Value> node = page.get(); node.setPage(page); node.setContainingList(this); return node; }
BTreeNode<Key,Value> loadNode(Transaction tx, long pageId, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> page = tx.load(pageId, marshaller); BTreeNode<Key, Value> node = page.get(); node.setPage(page); node.setParent(parent); return node; }
ListNode<Key,Value> loadNode(Transaction tx, long pageId) throws IOException { Page<ListNode<Key,Value>> page = tx.load(pageId, marshaller); ListNode<Key, Value> node = page.get(); node.setPage(page); node.setContainingList(this); return node; }
ListNode<Key,Value> loadNode(Transaction tx, long pageId) throws IOException { Page<ListNode<Key,Value>> page = tx.load(pageId, marshaller); ListNode<Key, Value> node = page.get(); node.setPage(page); node.setContainingList(this); return node; }
BTreeNode<Key,Value> loadNode(Transaction tx, long pageId, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> page = tx.load(pageId, marshaller); BTreeNode<Key, Value> node = page.get(); node.setPage(page); node.setParent(parent); return node; }
/** * * @param page * the page to write. The Page object must be fully populated with a valid pageId, type, and data. * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to write the data. * @param overflow * If true, then if the page data marshalls to a bigger size than can fit in one page, then additional * overflow pages are automatically allocated and chained to this page to store all the data. If false, * and the overflow condition would occur, then the PageOverflowIOException is thrown. * @throws IOException * If an disk error occurred. * @throws PageOverflowIOException * If the page data marshalls to size larger than maximum page size and overflow was false. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> void store(Page<T> page, Marshaller<T> marshaller, final boolean overflow) throws IOException { DataByteArrayOutputStream out = (DataByteArrayOutputStream)openOutputStream(page, overflow); if (marshaller != null) { marshaller.writePayload(page.get(), out); } out.close(); }
/** * * @param page * the page to write. The Page object must be fully populated with a valid pageId, type, and data. * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to write the data. * @param overflow * If true, then if the page data marshalls to a bigger size than can fit in one page, then additional * overflow pages are automatically allocated and chained to this page to store all the data. If false, * and the overflow condition would occur, then the PageOverflowIOException is thrown. * @throws IOException * If an disk error occurred. * @throws PageOverflowIOException * If the page data marshalls to size larger than maximum page size and overflow was false. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> void store(Page<T> page, Marshaller<T> marshaller, final boolean overflow) throws IOException { DataByteArrayOutputStream out = (DataByteArrayOutputStream)openOutputStream(page, overflow); if (marshaller != null) { marshaller.writePayload(page.get(), out); } out.close(); }
/** * * @param page * the page to write. The Page object must be fully populated with a valid pageId, type, and data. * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to write the data. * @param overflow * If true, then if the page data marshalls to a bigger size than can fit in one page, then additional * overflow pages are automatically allocated and chained to this page to store all the data. If false, * and the overflow condition would occur, then the PageOverflowIOException is thrown. * @throws IOException * If an disk error occurred. * @throws PageOverflowIOException * If the page data marshalls to size larger than maximum page size and overflow was false. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> void store(Page<T> page, Marshaller<T> marshaller, final boolean overflow) throws IOException { DataByteArrayOutputStream out = (DataByteArrayOutputStream)openOutputStream(page, overflow); if (marshaller != null) { marshaller.writePayload(page.get(), out); } out.close(); }