io.sirix.access.EmptyBufferManager Maven / Gradle / Ivy
package io.sirix.access;
import io.sirix.cache.*;
import io.sirix.index.name.Names;
import io.sirix.node.interfaces.Node;
import io.sirix.page.KeyValueLeafPage;
import io.sirix.page.PageReference;
import io.sirix.page.RevisionRootPage;
import io.sirix.page.interfaces.Page;
public final class EmptyBufferManager implements 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 INDEX_CACHE = new EmptyCache<>();
private static final EmptyCache NAMES_CACHE = new EmptyCache<>();
private static final EmptyCache PATH_SUMMARY_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 INDEX_CACHE;
}
@Override
public Cache getNamesCache() {
return NAMES_CACHE;
}
@Override
public Cache getPathSummaryCache() {
return PATH_SUMMARY_CACHE;
}
@Override
public void close() {
}
@Override
public void clearAllCaches() {
}
}