/** * Returns the byte representation of that set. * * @return byte array representation */ public byte[] toByteArray() { return writeIds(ids); }
@Override public void write(DataOutputView out) throws IOException { if (isEmpty()) { out.writeInt(0); } else { out.writeInt(size()); out.write(writeIds(ids)); } }