org.sirix.access.EmptyBufferManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirix-core Show documentation
Show all versions of sirix-core Show documentation
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.
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