public void setPage(Page<HashBin<Key, Value>> page) { this.page = page; this.page.set(this); }
synchronized void put(Transaction tx, MessageStoreStatistics storeStatistics) throws IOException { if (page == null) { page = tx.load(pageId, messageStoreStatisticsMarshaller); } page.set(storeStatistics); tx.store(page, messageStoreStatisticsMarshaller, true); } }
synchronized void load(Transaction tx) throws IOException { if (loaded.compareAndSet(false, true)) { page = tx.load(pageId, null); if (page.getType() == Page.PAGE_FREE_TYPE) { page.set(null); tx.store(page, messageStoreStatisticsMarshaller, true); } } page = tx.load(pageId, messageStoreStatisticsMarshaller); }
ListNode<Key,Value> createNode(Page<ListNode<Key,Value>> page) throws IOException { ListNode<Key,Value> node = new ListNode<Key,Value>(); node.setPage(page); page.set(node); node.setContainingList(this); return node; }
BTreeNode<Key,Value> createNode(Page<BTreeNode<Key,Value>> p, BTreeNode<Key,Value> parent) throws IOException { BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }
BTreeNode<Key,Value> createNode(Transaction tx, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> p = tx.allocate(); BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
metadata.binPageId = binPage.getPageId(); metadata.page = metadataPage; metadataPage.set(metadata); clear(tx);
public void setPage(Page<HashBin<Key, Value>> page) { this.page = page; this.page.set(this); }
ListNode<Key,Value> createNode(Page<ListNode<Key,Value>> page) throws IOException { ListNode<Key,Value> node = new ListNode<Key,Value>(); node.setPage(page); page.set(node); node.setContainingList(this); return node; }
ListNode<Key,Value> createNode(Page<ListNode<Key,Value>> page) throws IOException { ListNode<Key,Value> node = new ListNode<Key,Value>(); node.setPage(page); page.set(node); node.setContainingList(this); return node; }
ListNode<Key,Value> createNode(Page<ListNode<Key,Value>> page) throws IOException { ListNode<Key,Value> node = new ListNode<Key,Value>(); node.setPage(page); page.set(node); node.setContainingList(this); return node; }
BTreeNode<Key,Value> createNode(Page<BTreeNode<Key,Value>> p, BTreeNode<Key,Value> parent) throws IOException { BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
BTreeNode<Key,Value> createNode(Page<BTreeNode<Key,Value>> p, BTreeNode<Key,Value> parent) throws IOException { BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
BTreeNode<Key,Value> createNode(Page<BTreeNode<Key,Value>> p, BTreeNode<Key,Value> parent) throws IOException { BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }
BTreeNode<Key,Value> createNode(Transaction tx, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> p = tx.allocate(); BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }
BTreeNode<Key,Value> createNode(Transaction tx, BTreeNode<Key,Value> parent) throws IOException { Page<BTreeNode<Key,Value>> p = tx.allocate(); BTreeNode<Key,Value> node = new BTreeNode<Key,Value>(this); node.setPage(p); node.setParent(parent); node.setEmpty(); p.set(node); return node; }