@ Override public synchronized void write ( DataOutput out ) throws IOException { Text . writeString ( out , name ) ; boolean distinctDisplayName = ! name . equals ( displayName ) ; out . writeBoolean ( distinctDisplayName ) ; if ( distinctDisplayName ) { Text . writeString ( out , displayName ) ; } WritableUtils . writeVLong ( out , value ) ; }
Write the binary representation of the counter