Esempio n. 1
0
        private void CreateRelationshipBetween(long fromNode, long toNode)
        {
            Org.Neo4j.Kernel.impl.locking.Locks_Client locks = new NoOpClient();
            RelationshipCreator logic = new RelationshipCreator(newRelGroupGetter(_givenState), _denseNodeThreshold);

            logic.RelationshipCreate(NextRelId(_givenState), 0, fromNode, toNode, _changeset, locks);
        }
Esempio n. 2
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());
        }
Esempio n. 3
0
 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;
 }