All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sirix.access.EmptyBufferManager Maven / Gradle / Ivy

Go to download

SirixDB is a hybrid on-disk and in-memory document oriented, versioned database system. It has a lightweight buffer manager, stores everything in a huge persistent and durable tree and allows efficient reconstruction of every revision. Furthermore, SirixDB implements change tracking, diffing and supports time travel queries.

There is a newer version: 0.11.0
Show newest version
package org.sirix.access;

import org.sirix.cache.RBIndexKey;
import org.sirix.cache.Cache;
import org.sirix.cache.EmptyCache;
import org.sirix.index.redblacktree.RBNode;
import org.sirix.page.PageReference;
import org.sirix.page.RevisionRootPage;
import org.sirix.page.interfaces.Page;

public final class EmptyBufferManager implements org.sirix.cache.BufferManager {

  private static final EmptyCache RECORD_PAGE_CACHE = new EmptyCache<>();

  private static final EmptyCache PAGE_CACHE = new EmptyCache<>();

  private static final EmptyCache REVISION_ROOT_PAGE_CACHE = new EmptyCache<>();

  private static final EmptyCache> AVL_NODE_CACHE = new EmptyCache<>();

  EmptyBufferManager() {
  }

  @Override
  public Cache getRecordPageCache() {
    return RECORD_PAGE_CACHE;
  }

  @Override
  public Cache getPageCache() {
    return PAGE_CACHE;
  }

  @Override
  public Cache getRevisionRootPageCache() {
    return REVISION_ROOT_PAGE_CACHE;
  }

  @Override
  public Cache> getIndexCache() {
    return AVL_NODE_CACHE;
  }

  @Override
  public void close() {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy