@Override protected void writeRecordData( PropertyKeyTokenRecord record, PageCursor cursor ) { cursor.putInt( record.getPropertyCount() ); cursor.putInt( record.getNameId() ); } }
@Override public PropertyKeyTokenRecord clone() { PropertyKeyTokenRecord propertyKeyTokenRecord = new PropertyKeyTokenRecord( getIntId() ); propertyKeyTokenRecord.setInUse( inUse() ); if ( isCreated() ) { propertyKeyTokenRecord.setCreated(); } propertyKeyTokenRecord.setNameId( getNameId() ); propertyKeyTokenRecord.addNameRecords( getNameRecords() ); propertyKeyTokenRecord.setPropertyCount( getPropertyCount() ); return propertyKeyTokenRecord; } }
private void writePropertyKeyTokenRecord( WritableChannel channel, PropertyKeyTokenRecord record ) throws IOException { // id+in_use(byte)+count(int)+key_blockId(int)+nr_key_records(int) byte inUse = record.inUse() ? Record.IN_USE.byteValue() : Record.NOT_IN_USE.byteValue(); channel.put( inUse ); channel.putInt( record.getPropertyCount() ).putInt( record.getNameId() ); if ( record.isLight() ) { channel.putInt( 0 ); } else { writeDynamicRecords( channel, record.getNameRecords() ); } } }
@Override protected void writeRecordData( PropertyKeyTokenRecord record, PageCursor cursor ) { cursor.putInt( record.getPropertyCount() ); cursor.putInt( record.getNameId() ); } }
@Override public PropertyKeyTokenRecord clone() { PropertyKeyTokenRecord propertyKeyTokenRecord = new PropertyKeyTokenRecord( getIntId() ); propertyKeyTokenRecord.setInUse( inUse() ); if ( isCreated() ) { propertyKeyTokenRecord.setCreated(); } propertyKeyTokenRecord.setNameId( getNameId() ); propertyKeyTokenRecord.addNameRecords( getNameRecords() ); propertyKeyTokenRecord.setPropertyCount( getPropertyCount() ); return propertyKeyTokenRecord; } }
private void writePropertyKeyTokenRecord( WritableChannel channel, PropertyKeyTokenRecord record ) throws IOException { // id+in_use(byte)+count(int)+key_blockId(int)+nr_key_records(int) byte inUse = record.inUse() ? Record.IN_USE.byteValue() : Record.NOT_IN_USE.byteValue(); channel.put( inUse ); channel.putInt( record.getPropertyCount() ).putInt( record.getNameId() ); if ( record.isLight() ) { channel.putInt( 0 ); } else { writeDynamicRecords( channel, record.getNameRecords() ); } } }