Page<T> copy() { return new Page<T>().copy(this); }
private void fill() throws IOException { page = readPage(new Page(page.getNext())); pageCount++; }
/** * Loads a page from disk. * * @param pageId * the id of the page to load * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to load the data. * @return The page with the given id * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> load(long pageId, Marshaller<T> marshaller) throws IOException { pageFile.assertLoaded(); Page<T> page = new Page<T>(pageId); load(page, marshaller); return page; }
page = readPage(new Page(page.getNext())); pageCount++;
Page<T> copy() { return new Page<T>().copy(this); }
Page<T> copy() { return new Page<T>().copy(this); }
Page<T> copy() { return new Page<T>().copy(this); }
private void fill() throws IOException { page = readPage(new Page(page.getNext())); pageCount++; }
private void fill() throws IOException { page = readPage(new Page(page.getNext())); pageCount++; }
private void fill() throws IOException { page = readPage(new Page(page.getNext())); pageCount++; }
/** * Loads a page from disk. * * @param pageId * the id of the page to load * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to load the data. * @return The page with the given id * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> load(long pageId, Marshaller<T> marshaller) throws IOException { pageFile.assertLoaded(); Page<T> page = new Page<T>(pageId); load(page, marshaller); return page; }
/** * Loads a page from disk. * * @param pageId * the id of the page to load * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to load the data. * @return The page with the given id * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> load(long pageId, Marshaller<T> marshaller) throws IOException { pageFile.assertLoaded(); Page<T> page = new Page<T>(pageId); load(page, marshaller); return page; }
/** * Loads a page from disk. * * @param pageId * the id of the page to load * @param marshaller * the marshaler to use to load the data portion of the Page, may be null if you do not wish to load the data. * @return The page with the given id * @throws IOException * If an disk error occurred. * @throws IllegalStateException * if the PageFile is not loaded */ public <T> Page<T> load(long pageId, Marshaller<T> marshaller) throws IOException { pageFile.assertLoaded(); Page<T> page = new Page<T>(pageId); load(page, marshaller); return page; }
page = readPage(new Page(page.getNext())); pageCount++;
page = readPage(new Page(page.getNext())); pageCount++;
page = readPage(new Page(page.getNext())); pageCount++;