String.valueOf( legacyStores.getRelationshipGroupStore().getStoreHeaderInt() ) );
private void createAndVerify( Integer customThreshold ) { int expectedThreshold = customThreshold != null ? customThreshold : defaultThreshold; StoreFactory factory = factory( customThreshold ); NeoStores neoStores = factory.openAllNeoStores( true ); assertEquals( expectedThreshold, neoStores.getRelationshipGroupStore().getStoreHeaderInt() ); neoStores.close(); // Next time we open it it should be the same neoStores = factory.openAllNeoStores(); assertEquals( expectedThreshold, neoStores.getRelationshipGroupStore().getStoreHeaderInt() ); neoStores.close(); // Even if we open with a different config setting it should just ignore it factory = factory( 999999 ); neoStores = factory.openAllNeoStores(); assertEquals( expectedThreshold, neoStores.getRelationshipGroupStore().getStoreHeaderInt() ); neoStores.close(); }
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 ); }
String.valueOf( legacyStores.getRelationshipGroupStore().getStoreHeaderInt() ) );