Esempio n. 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());
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void startStore()
        public virtual void StartStore()
        {
            _neoStores     = (new StoreFactory(Storage.directory().databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory(Storage.fileSystem()), Storage.pageCache(), Storage.fileSystem(), NullLogProvider.Instance, EmptyVersionContextSupplier.EMPTY)).openNeoStores(true, StoreType.PROPERTY, StoreType.PROPERTY_STRING, StoreType.PROPERTY_ARRAY);
            _propertyStore = _neoStores.PropertyStore;
            _records       = new DirectRecordAccess <PropertyRecord, PrimitiveRecord>(_propertyStore, Loaders.PropertyLoader(_propertyStore));
            _creator       = new PropertyCreator(_propertyStore, new PropertyTraverser());
        }