public byte serialize() {
    return compressionType.getIndex();
  }
Decompress the byte array to a byte array with a known length.

@param byteArray the byte array to be decompressed
@param decompressedLength the length of the decompressed byte array
@return the decompressed byte array
@throws IOException
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/connector/compressor/PipeCompressor.java