public PropertyValueRecordSizeCalculator( int propertyRecordSize, int stringRecordSize, int stringRecordDataSize, int arrayRecordSize, int arrayRecordDataSize ) { this.propertyRecordSize = propertyRecordSize; this.stringRecordSize = stringRecordSize; this.arrayRecordSize = arrayRecordSize; this.stringRecordCounter = new StandardDynamicRecordAllocator( stringRecordIds, stringRecordDataSize ); this.arrayRecordCounter = new StandardDynamicRecordAllocator( arrayRecordIds, arrayRecordDataSize ); }
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() ); }
protected EntityImporter( BatchingNeoStores stores, Monitor monitor ) { this.propertyStore = stores.getPropertyStore(); this.propertyKeyTokenRepository = stores.getPropertyKeyRepository(); this.monitor = monitor; for ( int i = 0; i < propertyBlocks.length; i++ ) { propertyBlocks[i] = new PropertyBlock(); } this.propertyRecord = propertyStore.newRecord(); this.propertyIds = new BatchingIdGetter( propertyStore ); this.dynamicStringRecordAllocator = new StandardDynamicRecordAllocator( new BatchingIdGetter( propertyStore.getStringStore(), propertyStore.getStringStore().getRecordsPerPage() ), propertyStore.getStringStore().getRecordDataSize() ); this.dynamicArrayRecordAllocator = new StandardDynamicRecordAllocator( new BatchingIdGetter( propertyStore.getArrayStore(), propertyStore.getArrayStore().getRecordsPerPage() ), propertyStore.getStringStore().getRecordDataSize() ); }
public PropertyValueRecordSizeCalculator( int propertyRecordSize, int stringRecordSize, int stringRecordDataSize, int arrayRecordSize, int arrayRecordDataSize ) { this.propertyRecordSize = propertyRecordSize; this.stringRecordSize = stringRecordSize; this.arrayRecordSize = arrayRecordSize; this.stringRecordCounter = new StandardDynamicRecordAllocator( stringRecordIds, stringRecordDataSize ); this.arrayRecordCounter = new StandardDynamicRecordAllocator( arrayRecordIds, arrayRecordDataSize ); }
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() ); }
protected EntityImporter( BatchingNeoStores stores, Monitor monitor ) { this.propertyStore = stores.getPropertyStore(); this.propertyKeyTokenRepository = stores.getPropertyKeyRepository(); this.monitor = monitor; for ( int i = 0; i < propertyBlocks.length; i++ ) { propertyBlocks[i] = new PropertyBlock(); } this.propertyRecord = propertyStore.newRecord(); this.propertyIds = new BatchingIdGetter( propertyStore ); this.dynamicStringRecordAllocator = new StandardDynamicRecordAllocator( new BatchingIdGetter( propertyStore.getStringStore(), propertyStore.getStringStore().getRecordsPerPage() ), propertyStore.getStringStore().getRecordDataSize() ); this.dynamicArrayRecordAllocator = new StandardDynamicRecordAllocator( new BatchingIdGetter( propertyStore.getArrayStore(), propertyStore.getArrayStore().getRecordsPerPage() ), propertyStore.getStringStore().getRecordDataSize() ); }