Beispiel #1
0
        internal RecordStorageCommandCreationContext(NeoStores neoStores, int denseNodeThreshold, int idBatchSize)
        {
            this._neoStores = neoStores;
            this._idBatches = new RenewableBatchIdSequences(neoStores, idBatchSize);

            this._loaders = new Loaders(neoStores);
            RelationshipGroupGetter relationshipGroupGetter = new RelationshipGroupGetter(_idBatches.idGenerator(StoreType.RELATIONSHIP_GROUP));

            this._relationshipCreator = new RelationshipCreator(relationshipGroupGetter, denseNodeThreshold);
            PropertyTraverser propertyTraverser = new PropertyTraverser();

            this._propertyDeleter     = new PropertyDeleter(propertyTraverser);
            this._relationshipDeleter = new RelationshipDeleter(relationshipGroupGetter, _propertyDeleter);
            this._propertyCreator     = new PropertyCreator(new StandardDynamicRecordAllocator(_idBatches.idGenerator(StoreType.PROPERTY_STRING), neoStores.PropertyStore.StringStore.RecordDataSize), new StandardDynamicRecordAllocator(_idBatches.idGenerator(StoreType.PROPERTY_ARRAY), neoStores.PropertyStore.ArrayStore.RecordDataSize), _idBatches.idGenerator(StoreType.PROPERTY), propertyTraverser, neoStores.PropertyStore.allowStorePointsAndTemporal());
        }
 internal TransactionRecordState(NeoStores neoStores, IntegrityValidator integrityValidator, RecordChangeSet recordChangeSet, long lastCommittedTxWhenTransactionStarted, ResourceLocker locks, RelationshipCreator relationshipCreator, RelationshipDeleter relationshipDeleter, PropertyCreator propertyCreator, PropertyDeleter propertyDeleter)
 {
     this._neoStores              = neoStores;
     this._nodeStore              = neoStores.NodeStore;
     this._relationshipStore      = neoStores.RelationshipStore;
     this._propertyStore          = neoStores.PropertyStore;
     this._relationshipGroupStore = neoStores.RelationshipGroupStore;
     this._metaDataStore          = neoStores.MetaDataStore;
     this._schemaStore            = neoStores.SchemaStore;
     this._integrityValidator     = integrityValidator;
     this._recordChangeSet        = recordChangeSet;
     this._lastCommittedTxWhenTransactionStarted = lastCommittedTxWhenTransactionStarted;
     this._locks = locks;
     this._relationshipCreator = relationshipCreator;
     this._relationshipDeleter = relationshipDeleter;
     this._propertyCreator     = propertyCreator;
     this._propertyDeleter     = propertyDeleter;
 }