private void property( PropertyRecord record, long reference, PageCursor pageCursor ) { // We need to load forcefully here since otherwise we can have inconsistent reads // for properties across blocks, see org.neo4j.graphdb.ConsistentPropertyReadsIT read.getRecordByCursor( reference, record, RecordLoad.FORCE, pageCursor ); }
private static long calculateNumberOfProperties( NeoStores stores ) { long count = 0; PropertyRecord record = stores.getPropertyStore().newRecord(); try ( PageCursor cursor = stores.getPropertyStore().openPageCursorForReading( 0 ) ) { long highId = stores.getPropertyStore().getHighId(); for ( long id = 0; id < highId; id++ ) { stores.getPropertyStore().getRecordByCursor( id, record, CHECK, cursor ); if ( record.inUse() ) { count += count( record ); } } } return count; }
while ( !Record.NULL_REFERENCE.is( nextProp ) ) propertyStore.getRecordByCursor( nextProp, propertyRecord, NORMAL, propertyCursor ); assert propertyRecord.inUse() : propertyRecord + " for " + nodeRecord; propertyStore.ensureHeavy( propertyRecord );
private void property( PropertyRecord record, long reference, PageCursor pageCursor ) { // We need to load forcefully here since otherwise we can have inconsistent reads // for properties across blocks, see org.neo4j.graphdb.ConsistentPropertyReadsIT read.getRecordByCursor( reference, record, RecordLoad.FORCE, pageCursor ); }
while ( !Record.NULL_REFERENCE.is( nextProp ) ) propertyStore.getRecordByCursor( nextProp, propertyRecord, NORMAL, propertyCursor ); assert propertyRecord.inUse() : propertyRecord + " for " + nodeRecord; propertyStore.ensureHeavy( propertyRecord );