//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()); }
private long StoreValuesAsPropertyChain(PropertyCreator creator, NodeRecord owner, Value[] values) { DirectRecordAccessSet access = new DirectRecordAccessSet(_neoStores); long firstPropertyId = creator.CreatePropertyChain(owner, BlocksOf(creator, values), access.PropertyRecords); access.Close(); return(firstPropertyId); }
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; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() public virtual void Setup() { _neoStores = (new StoreFactory(Storage.directory().databaseLayout(), Config.defaults(), new DefaultIdGeneratorFactory(Storage.fileSystem()), Storage.pageCache(), Storage.fileSystem(), NullLogProvider.Instance, EmptyVersionContextSupplier.EMPTY)).openAllNeoStores(true); _creator = new PropertyCreator(_neoStores.PropertyStore, new PropertyTraverser()); _owner = _neoStores.NodeStore.newRecord(); }
private IEnumerator <PropertyBlock> BlocksOf(PropertyCreator creator, Value[] values) { return(new IteratorWrapperAnonymousInnerClass(this, iterator(values), creator)); }