/** * Allocates a free page that you can write data to. * * @return a newly allocated page. * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> allocate() throws IOException { return allocate(1); }
void createIndexes(Transaction tx) throws IOException { this.lists = new BTreeIndex<String, PListImpl>(pageFile, tx.allocate().getPageId()); }
@Override public void initialize(Transaction tx) throws IOException { this.storedSchedulers = new BTreeIndex<String, JobSchedulerImpl>(store.getPageFile(), tx.allocate().getPageId()); this.journalRC = new BTreeIndex<Integer, Integer>(store.getPageFile(), tx.allocate().getPageId()); this.removeLocationTracker = new BTreeIndex<Integer, List<Integer>>(store.getPageFile(), tx.allocate().getPageId()); }
void createIndexes(Transaction tx) throws IOException { this.index = new BTreeIndex<>(this.store.getPageFile(), tx.allocate().getPageId()); }
public ListNode<Key,Value> createNode(Transaction tx) throws IOException { return createNode(tx.<ListNode<Key,Value>>load(tx.<ListNode<Key,Value>>allocate().getPageId(), null)); }
void createIndexes(Transaction tx) throws IOException { this.index = new BTreeIndex<Long, List<LegacyJobLocation>>(this.store.getPageFile(), tx.allocate().getPageId()); }
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; }
long resizePageId = tx.allocate(resizeCapacity).getPageId();
rc.orderIndex = new BTreeIndex<Long, MessageRecord>(pageFile, tx.allocate()); rc.messageIdIndex = new BTreeIndex<String, Long>(pageFile, tx.allocate()); rc.subscriptions = new BTreeIndex<String, KahaSubscriptionCommand>(pageFile, tx.allocate()); rc.subscriptionAcks = new BTreeIndex<String, Long>(pageFile, tx.allocate());
rc.locationIndex = new BTreeIndex<>(pageFile, tx.allocate()); rc.messageIdIndex = new BTreeIndex<>(pageFile, tx.allocate()); rc.subscriptions = new BTreeIndex<>(pageFile, tx.allocate()); rc.subscriptionAcks = new BTreeIndex<>(pageFile, tx.allocate()); rc.ackPositions = new ListIndex<>(pageFile, tx.allocate()); rc.subLocations = new ListIndex<>(pageFile, tx.allocate()); rc.messageStoreStatistics = new StoredMessageStoreStatistics(pageFile, tx.allocate());
Page binPage = tx.allocate(metadata.binCapacity); metadata.binPageId = binPage.getPageId(); metadata.page = metadataPage;
} else { pageFile.tx().execute(tx -> { value.messageStoreStatistics = new StoredMessageStoreStatistics(pageFile, tx.allocate()); value.messageStoreStatistics.load(tx); });
next = load(current.getNext(), null); } else { next = allocate();
/** * Allocates a free page that you can write data to. * * @return a newly allocated page. * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> allocate() throws IOException { return allocate(1); }
/** * Allocates a free page that you can write data to. * * @return a newly allocated page. * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> allocate() throws IOException { return allocate(1); }
/** * Allocates a free page that you can write data to. * * @return a newly allocated page. * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> allocate() throws IOException { return allocate(1); }
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; }