protected PropertyAwareEntityStoreScan( StorageReader storageReader, long totalEntityCount, IntPredicate propertyKeyIdFilter, LongFunction<Lock> lockFunction ) { this.storageReader = storageReader; this.entityCursor = allocateCursor( storageReader ); this.propertyCursor = storageReader.allocatePropertyCursor(); this.propertyKeyIdFilter = propertyKeyIdFilter; this.lockFunction = lockFunction; this.totalCount = totalEntityCount; }
@Override public DefaultPropertyCursor allocatePropertyCursor() { if ( propertyCursor == null ) { return trace( new DefaultPropertyCursor( this, storageReader.allocatePropertyCursor() ) ); } try { return propertyCursor; } finally { propertyCursor = null; } }
private StorageProperty getProperty( int key, long propertyId ) { try ( StoragePropertyCursor propertyCursor = storageReader.allocatePropertyCursor() ) { propertyCursor.init( propertyId ); if ( propertyCursor.next() ) { Value oldValue = propertyCursor.propertyValue(); if ( oldValue != null ) { return new PropertyKeyValue( key, oldValue ); } } } return null; }
private void takeSnapshot() StoragePropertyCursor properties = store.allocatePropertyCursor(); StorageRelationshipScanCursor relationship = store.allocateRelationshipScanCursor() )
assertTrue( node.next() ); try ( StoragePropertyCursor props = storageReader.allocatePropertyCursor() )
protected PropertyAwareEntityStoreScan( StorageReader storageReader, long totalEntityCount, IntPredicate propertyKeyIdFilter, LongFunction<Lock> lockFunction ) { this.storageReader = storageReader; this.entityCursor = allocateCursor( storageReader ); this.propertyCursor = storageReader.allocatePropertyCursor(); this.propertyKeyIdFilter = propertyKeyIdFilter; this.lockFunction = lockFunction; this.totalCount = totalEntityCount; }
@Override public DefaultPropertyCursor allocatePropertyCursor() { if ( propertyCursor == null ) { return trace( new DefaultPropertyCursor( this, storageReader.allocatePropertyCursor() ) ); } try { return propertyCursor; } finally { propertyCursor = null; } }
private void takeSnapshot() StoragePropertyCursor properties = store.allocatePropertyCursor(); StorageRelationshipScanCursor relationship = store.allocateRelationshipScanCursor() )