@Override public long read(ByteBuffer buffer){
  long value=buffer.getLong();
  return value;
}

@ Override public long read ( ByteBuffer buffer ) { long value = buffer . getLong ( ) ; return value ; }
reads the long value of id from the buffer and returns it .
