public byte[] toBytes() throws IOException {
    return ExternalizableUtil.toBytes(this);
  }
For de-serialization

@param bytes
@throws IOException
@throws ClassNotFoundException
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/approximate/StreamSummary.java