Package at.jku.sii.sqlitereader.io

Examples of at.jku.sii.sqlitereader.io.ArrayDataInput.readInt()


  public static List<PayloadOverflowPage> readOverflowPages(SqliteDataBase db, int startPage) {
    List<PayloadOverflowPage> list = new ArrayList<PayloadOverflowPage>();
    int page = startPage;
    while (page > 0) {
      ArrayDataInput block = db.getPageBlock(page);
      int nextPage = block.readInt();
      block.annotateLastInt("nextPage", nextPage);

      int size = block.size() - 4;
      byte[] content = new byte[size];
      block.readFully(content);
View Full Code Here


  public static List<FreeListPage> readPages(SqliteDataBase db, int firstFreeListPage, int numFreeListPages) {
    List<FreeListPage> pages = new ArrayList<FreeListPage>(numFreeListPages);
    int nextFreePage = firstFreeListPage;
    for (int i = 0; i < numFreeListPages; ++i) {
      ArrayDataInput block = db.getPageBlock(nextFreePage);
      int nextFreePage2 = block.readInt();
      block.annotateLastInt("nextFreePage", nextFreePage2);

      int numEntries = block.readInt("numEntries");
      List<FreePage> freePages = new ArrayList<FreePage>(numEntries);
      for (int j = 0; j < numEntries; ++j) {
View Full Code Here

    for (int i = 0; i < numFreeListPages; ++i) {
      ArrayDataInput block = db.getPageBlock(nextFreePage);
      int nextFreePage2 = block.readInt();
      block.annotateLastInt("nextFreePage", nextFreePage2);

      int numEntries = block.readInt("numEntries");
      List<FreePage> freePages = new ArrayList<FreePage>(numEntries);
      for (int j = 0; j < numEntries; ++j) {
        int freePage = block.readInt("freePage");
        FreePage p = new FreePage(freePage);
        db.resolvePage(freePage, p);
View Full Code Here

      block.annotateLastInt("nextFreePage", nextFreePage2);

      int numEntries = block.readInt("numEntries");
      List<FreePage> freePages = new ArrayList<FreePage>(numEntries);
      for (int j = 0; j < numEntries; ++j) {
        int freePage = block.readInt("freePage");
        FreePage p = new FreePage(freePage);
        db.resolvePage(freePage, p);
        freePages.add(p);
      }
      FreeListPage p = new FreeListPage(nextFreePage, nextFreePage2, freePages);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.