Examples of PageAddress


Examples of lupos.datastructures.buffermanager.BufferManager.PageAddress

    return false;
  }

  public boolean removeAllDuplicates(final Object element) {
    try {
      final PageAddress pageAddress = new PageAddress(0, this.pointersFilename);
      final byte[] page = BufferManager.getBufferManager().getPage(this.TABLEPAGESIZE, pageAddress);

      final int hashAddress = Math.abs(element.hashCode() % this.TABLESIZE);

      long pointer = InputHelper.readLuposLong(new ByteArrayInputStream(page, hashAddress * 8, 8));
View Full Code Here

Examples of lupos.datastructures.buffermanager.BufferManager.PageAddress

            return this.currentElement;
          }

          if(this.addressOfNextEntry == 0){
            try {
              final PageAddress pageAddress = new PageAddress(0, PagedHashMultiSet.this.pointersFilename);
              final byte[] page = BufferManager.getBufferManager().getPage(PagedHashMultiSet.this.TABLEPAGESIZE, pageAddress);
              long pointer;
              do {
                this.address += 8;
                pointer = InputHelper.readLuposLong(new ByteArrayInputStream(page, this.address, 8));
View Full Code Here

Examples of lupos.datastructures.buffermanager.BufferManager.PageAddress

            return this.currentElement;
          }

          if(this.addressOfNextEntry == 0){
            try {
              final PageAddress pageAddress = new PageAddress(0, PagedHashMultiSet.this.pointersFilename);
              final byte[] page = BufferManager.getBufferManager().getPage(PagedHashMultiSet.this.TABLEPAGESIZE, pageAddress);
              long pointer;
              do {
                this.address += 8;
                pointer = InputHelper.readLuposLong(new ByteArrayInputStream(page, this.address, 8));
View Full Code Here

Examples of lupos.datastructures.buffermanager.BufferManager.PageAddress

    return result+" }";
  }

  @Override
  public void clear() {
    final PageAddress pageAddress = new PageAddress(0, this.pointersFilename);
    try {
      // delete content of pointers page...
      final byte[] page = BufferManager.getBufferManager().getPage(this.TABLEPAGESIZE, pageAddress);
      for(int i=0; i<page.length; i++){
        page[i]=0;
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.