/** * @return temporary property store which will be deleted in {@link #close()}. */ public PropertyStore getTemporaryPropertyStore() { return temporaryNeoStores.getPropertyStore(); }
public PropertyStore getPropertyStore() { return neoStores.getPropertyStore(); }
@Override protected PropertyStore getStore( NeoStores neoStores ) { return neoStores.getPropertyStore(); }
PropertyReader( StoreAccess storeAccess ) { this.propertyStore = storeAccess.getRawNeoStores().getPropertyStore(); this.nodeStore = storeAccess.getRawNeoStores().getNodeStore(); }
public NeoStoreIndexStoreView( LockService locks, NeoStores neoStores ) { this.locks = locks; this.neoStores = neoStores; this.propertyStore = neoStores.getPropertyStore(); this.nodeStore = neoStores.getNodeStore(); this.relationshipStore = neoStores.getRelationshipStore(); this.counts = neoStores.getCounts(); }
private RecordPropertyCursor createCursor() { return new RecordPropertyCursor( neoStores.getPropertyStore() ); }
@Before public void before() { when( neoStores.getNodeStore() ).thenReturn( nodeStore ); when( neoStores.getPropertyStore() ).thenReturn( propertyStore ); }
private DynamicArrayStore createDynamicArrayStore() { neoStores = storeFactory.openAllNeoStores( true ); return neoStores.getPropertyStore().getArrayStore(); }
protected PropertyStore propertyStore() { return graphDb.getDependencyResolver().resolveDependency( RecordStorageEngine.class ) .testAccessNeoStores().getPropertyStore(); } }
public Loaders( NeoStores neoStores ) { this( neoStores.getNodeStore(), neoStores.getPropertyStore(), neoStores.getRelationshipStore(), neoStores.getRelationshipGroupStore(), neoStores.getPropertyKeyTokenStore(), neoStores.getRelationshipTypeTokenStore(), neoStores.getLabelTokenStore(), neoStores.getSchemaStore() ); }
public DirectRecordAccessSet( NeoStores neoStores ) { this( neoStores.getNodeStore(), neoStores.getPropertyStore(), neoStores.getRelationshipStore(), neoStores.getRelationshipGroupStore(), neoStores.getPropertyKeyTokenStore(), neoStores.getRelationshipTypeTokenStore(), neoStores.getLabelTokenStore(), neoStores.getSchemaStore() ); }
@Override public boolean visitPropertyCommand( Command.PropertyCommand command ) { // acquire lock if ( command.getNodeId() != -1 ) { lockGroup.add( lockService.acquireNodeLock( command.getNodeId(), LockService.LockType.WRITE_LOCK ) ); } else if ( command.getRelId() != -1 ) { lockGroup.add( lockService.acquireRelationshipLock( command.getRelId(), LockService.LockType.WRITE_LOCK ) ); } updateStore( neoStores.getPropertyStore(), command ); return false; }
@Before public void before() { FileSystemAbstraction fs = fileSystemRule.get(); DefaultIdGeneratorFactory idGeneratorFactory = new DefaultIdGeneratorFactory( fs ); PageCache pageCache = pageCacheRule.getPageCache( fs ); StoreFactory factory = new StoreFactory( testDirectory.databaseLayout(), Config.defaults(), idGeneratorFactory, pageCache, fs, NullLogProvider.getInstance(), EmptyVersionContextSupplier.EMPTY ); neoStores = factory.openAllNeoStores( true ); arrayStore = neoStores.getPropertyStore().getArrayStore(); }
@Before public void setupStore() { neoStores = new StoreFactory( storage.directory().databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory( storage.fileSystem() ), storage.pageCache(), storage.fileSystem(), NullLogProvider.getInstance(), EmptyVersionContextSupplier.EMPTY ).openNeoStores( true, StoreType.PROPERTY, StoreType.PROPERTY_ARRAY, StoreType.PROPERTY_STRING ); propertyStore = neoStores.getPropertyStore(); }
@Before public void before() { StoreFactory storeFactory = new StoreFactory( testDirectory.databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory( fs.get() ), pageCacheRule.getPageCache( fs.get() ), fs.get(), NullLogProvider.getInstance(), EmptyVersionContextSupplier.EMPTY ); neoStores = storeFactory.openAllNeoStores( true ); store = neoStores.getPropertyStore(); converter = new PropertyPhysicalToLogicalConverter( store ); }
private Iterable<EntityUpdates> indexUpdatesOf( NeoStores neoStores, TransactionRepresentation transaction ) throws IOException { PropertyCommandsExtractor extractor = new PropertyCommandsExtractor(); transaction.accept( extractor ); CollectingIndexingUpdateService indexingUpdateService = new CollectingIndexingUpdateService(); OnlineIndexUpdates onlineIndexUpdates = new OnlineIndexUpdates( neoStores.getNodeStore(), neoStores.getRelationshipStore(), indexingUpdateService, new PropertyPhysicalToLogicalConverter( neoStores.getPropertyStore() ) ); onlineIndexUpdates.feed( extractor.propertyCommandsByNodeIds(), extractor.propertyCommandsByRelationshipIds(), extractor.nodeCommandsById(), extractor.relationshipCommandsById() ); return indexingUpdateService.entityUpdatesList; }
private void initializeStores( DatabaseLayout databaseLayout, Map<String,String> additionalConfig ) throws IOException { Dependencies dependencies = new Dependencies(); dependencies.satisfyDependency( Config.defaults( additionalConfig ) ); ds = dsRule.getDataSource( databaseLayout, fs.get(), pageCache, dependencies ); ds.start(); NeoStores neoStores = ds.getDependencyResolver() .resolveDependency( RecordStorageEngine.class ).testAccessNeoStores(); pStore = neoStores.getPropertyStore(); rtStore = neoStores.getRelationshipTypeTokenStore(); relStore = neoStores.getRelationshipStore(); nodeStore = neoStores.getNodeStore(); storageReader = ds.getDependencyResolver().resolveDependency( StorageEngine.class ).newReader(); }
@Before public void startStore() { neoStores = new StoreFactory( storage.directory().databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory( storage.fileSystem() ), storage.pageCache(), storage.fileSystem(), NullLogProvider.getInstance(), EmptyVersionContextSupplier.EMPTY ).openNeoStores( true, StoreType.PROPERTY, StoreType.PROPERTY_STRING, StoreType.PROPERTY_ARRAY ); propertyStore = neoStores.getPropertyStore(); records = new DirectRecordAccess<>( propertyStore, Loaders.propertyLoader( propertyStore ) ); creator = new PropertyCreator( propertyStore, new PropertyTraverser() ); }
@Before public void setup() { neoStores = new StoreFactory( storage.directory().databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory( storage.fileSystem() ), storage.pageCache(), storage.fileSystem(), NullLogProvider.getInstance(), EmptyVersionContextSupplier.EMPTY ).openAllNeoStores( true ); creator = new PropertyCreator( neoStores.getPropertyStore(), new PropertyTraverser() ); owner = neoStores.getNodeStore().newRecord(); }
private TransactionRecordState newTransactionRecordState( NeoStores neoStores ) { Loaders loaders = new Loaders( neoStores ); recordChangeSet = new RecordChangeSet( loaders ); PropertyTraverser propertyTraverser = new PropertyTraverser(); RelationshipGroupGetter relationshipGroupGetter = new RelationshipGroupGetter( neoStores.getRelationshipGroupStore() ); PropertyDeleter propertyDeleter = new PropertyDeleter( propertyTraverser ); return new TransactionRecordState( neoStores, integrityValidator, recordChangeSet, 0, new NoOpClient(), new RelationshipCreator( relationshipGroupGetter, neoStores.getRelationshipGroupStore().getStoreHeaderInt() ), new RelationshipDeleter( relationshipGroupGetter, propertyDeleter ), new PropertyCreator( neoStores.getPropertyStore(), propertyTraverser ), propertyDeleter ); }