public long nextId( StoreType type ) { return idGenerator( type ).nextId(); }
@Override public void close() { for ( StoreType type : StoreType.values() ) { IdSequence generator = idGenerator( type ); if ( generator instanceof RenewableBatchIdSequence ) { ((RenewableBatchIdSequence)generator).close(); } } } }
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.getPropertyStore().getStringStore().getRecordDataSize() ), new StandardDynamicRecordAllocator( idBatches.idGenerator( StoreType.PROPERTY_ARRAY ), neoStores.getPropertyStore().getArrayStore().getRecordDataSize() ), idBatches.idGenerator( StoreType.PROPERTY ), propertyTraverser, neoStores.getPropertyStore().allowStorePointsAndTemporal() ); }
public long nextId( StoreType type ) { return idGenerator( type ).nextId(); }
@Override public void close() { for ( StoreType type : StoreType.values() ) { IdSequence generator = idGenerator( type ); if ( generator instanceof RenewableBatchIdSequence ) { ((RenewableBatchIdSequence)generator).close(); } } } }
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.getPropertyStore().getStringStore().getRecordDataSize() ), new StandardDynamicRecordAllocator( idBatches.idGenerator( StoreType.PROPERTY_ARRAY ), neoStores.getPropertyStore().getArrayStore().getRecordDataSize() ), idBatches.idGenerator( StoreType.PROPERTY ), propertyTraverser, neoStores.getPropertyStore().allowStorePointsAndTemporal() ); }