public byte[] serialize() {
    int totalBytes = Integer.BYTES * 2 + registers.length * Integer.BYTES;
    ByteBuffer byteBuffer = ByteBuffer.allocate(totalBytes);
    ReadWriteIOUtils.write(b, byteBuffer);
    ReadWriteIOUtils.write(m, byteBuffer);
    for (int i = 0; i < m; i++) {
      ReadWriteIOUtils.write(registers[i], byteBuffer);
    }
    return byteBuffer.array();
  }
Merges another HyperLogLog instance into this one.

@param other The other HyperLogLog instance to merge
@throws IllegalArgumentException if the precision doesn't match
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/approximate/HyperLogLog.java