예제 #1
0
 @Override
 public void write(Object o, ByteArrayDataOutput dat) {
   dat.writeLong((Long) o);
 }
예제 #2
0
 @Override
 protected byte[] typeToBytes(Long p) {
   ByteArrayDataOutput out = ByteStreams.newDataOutput();
   out.writeLong(p.longValue());
   return out.toByteArray();
 }