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