Examples of incrementUsages()


Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.incrementUsages()

  public OCacheEntry load(long fileId, long pageIndex, boolean checkPinnedPages) throws IOException {
    final MemoryFile memoryFile = getFile(fileId);
    final OCacheEntry cacheEntry = memoryFile.loadPage(pageIndex);

    synchronized (cacheEntry) {
      cacheEntry.incrementUsages();
    }

    return cacheEntry;
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.incrementUsages()

  public OCacheEntry allocateNewPage(long fileId) throws IOException {
    final MemoryFile memoryFile = getFile(fileId);
    final OCacheEntry cacheEntry = memoryFile.addNewPage();

    synchronized (cacheEntry) {
      cacheEntry.incrementUsages();
    }

    return cacheEntry;
  }
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.