@Override public void read( RECORD record, PageCursor cursor, RecordLoad mode, int recordSize ) { byte inUseByte = cursor.getByte(); boolean inUse = isInUse( inUseByte ); record.setInUse( inUse ); if ( mode.shouldLoad( inUse ) ) { readRecordData( cursor, record, inUse ); } }
record.setInUse( true ); byte[] data = PropertyStore.encodeString( name ); if ( data.length > dynamicIds.length * NAME_STORE_BLOCK_SIZE )
public void createToken( String name, long id, RecordAccess<R, Void> recordAccess ) { R record = recordAccess.create( id, null ).forChangingData(); record.setInUse( true ); record.setCreated(); Collection<DynamicRecord> nameRecords = store.allocateNameRecords( encodeString( name ) ); record.setNameId( (int) Iterables.first( nameRecords ).getId() ); record.addNameRecords( nameRecords ); } }
private static void populateTokenRecord( TokenRecord record, int nameId ) { record.setInUse( true ); record.setNameId( nameId ); record.setCreated(); DynamicRecord dynamicRecord = new DynamicRecord( nameId ); dynamicRecord.setInUse( true ); dynamicRecord.setData( new byte[10] ); dynamicRecord.setCreated(); record.addNameRecord( dynamicRecord ); }
@Override public void read( RECORD record, PageCursor cursor, RecordLoad mode, int recordSize ) { byte inUseByte = cursor.getByte(); boolean inUse = isInUse( inUseByte ); record.setInUse( inUse ); if ( mode.shouldLoad( inUse ) ) { readRecordData( cursor, record, inUse ); } }
record.setInUse( true ); byte[] data = PropertyStore.encodeString( name ); if ( data.length > dynamicIds.length * NAME_STORE_BLOCK_SIZE )
public void createToken( String name, long id, RecordAccess<R, Void> recordAccess ) { R record = recordAccess.create( id, null ).forChangingData(); record.setInUse( true ); record.setCreated(); Collection<DynamicRecord> nameRecords = store.allocateNameRecords( encodeString( name ) ); record.setNameId( (int) Iterables.first( nameRecords ).getId() ); record.addNameRecords( nameRecords ); } }