{
private final Map<Database<?, ?>, Entity[]> m_dbFiles = new HashMap<Database<?, ?>, Entity[]>();
private ShadowCopyTransactionalDatabase<Integer, Long, Long> createDatabaseUsingFile(Directory dir, EFile f, EFile indf)
{
LogAdapterHolder lah = new LogAdapterHolder(new StdOutLogAdapter());
BPlusTreeIndexBackendFileBackedNodeRepositoryBuilder<Integer> nrb = new BPlusTreeIndexBackendFileBackedNodeRepositoryBuilder<Integer>();
nrb.setKeySerializer(IntegerNullSerializer.INSTANCE);
nrb.setLogAdapterHolder(lah);
ShadowCopyTransactionalDatabase<Integer, Long, Long> res = new ShadowCopyTransactionalDatabase<Integer, Long, Long>(new BPlusTreeIndexFileManager(new HeapBackendFileManager(f, dir), indf, dir), new BPlusTreeIndexBackendFactory<Integer, Long, Integer, Long>(new ConstantRecordSizeHeapBackendFactory<Integer, Long>(IntegerSerializer.INSTANCE, LongSerializer.INSTANCE, 0, 8192, lah), new LruCacheNodeRepositoryBuilder<Integer, Long>().setProxiedBuilder(nrb), IntegerToIntegerHasher.INSTANCE, lah), false, lah);
m_dbFiles.put(res, new Entity[] { dir, f, indf });