Example #1
0
        private NeoStores StoreFixture()
        {
            PageCache    pageCache = PageCacheRule.getPageCache(_fs, config().withInconsistentReads(_nextReadIsInconsistent));
            StoreFactory factory   = new StoreFactory(TestDirectory.databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory(_fs), pageCache, _fs, NullLogProvider.Instance, EmptyVersionContextSupplier.EMPTY);
            NeoStores    neoStores = factory.OpenAllNeoStores(true);
            S            store     = InitialiseStore(neoStores);

            CommonAbstractStore commonAbstractStore = ( CommonAbstractStore )store;

            commonAbstractStore.rebuildIdGenerator();
            return(neoStores);
        }
Example #2
0
 private static long StoreSize <T1>(CommonAbstractStore <T1> store) where T1 : Org.Neo4j.Kernel.impl.store.record.AbstractBaseRecord
 {
     return(store.NumberOfIdsInUse * store.RecordSize);
 }