1. A data processing apparatus, comprising: a register, being configured to store a plurality of data, each of the data comprises a first sub-datum and a second sub-datum, the plurality of first sub-data corresponding to a first column, and the plurality of second sub-data corresponding to a second column; and a processor electrically connected to the register, being configured to compress the plurality of first sub-data by a first compression algorithm according to a first characteristic of the plurality of first sub-data and compress the plurality of second sub-data by a second compression algorithm according to a second characteristic of the plurality of second sub-data.