GitHub user kiszk opened a pull request: https://github.com/apache/spark/pull/18704
[SPARK-20783][SQL] Create CachedBatchColumnVector to abstract existing compressed column (batch method) ## What changes were proposed in this pull request? This PR adds a new class `OnHeapCachedBatch` class, which can have compressed data by using `CompressibleColumnAccessor`, derived from `ColumnVector` class. As first step of this implementation, this JIRA supports primitive data types. Another PR will support array and other data types. Current implementation adds compressed data by using `putByteArray()` method, and then gets data by using a getter (e.g. `getInt()`). Thisimplementation decompress data in batch into uncompressed column batch, as @rxin suggested at [here](https://github.com/apache/spark/pull/18468#issuecomment-316914076). Another implementation uses adapter approach [as @cloud-fan suggested](https://github.com/apache/spark/pull/18468). ## How was this patch tested? Added test suites You can merge this pull request into a Git repository by running: $ git pull https://github.com/kiszk/spark SPARK-20783a Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18704.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18704 ---- commit c09f05f75f85203be9032ffcdcedf7f39c668a7a Author: Kazuaki Ishizaki <ishiz...@jp.ibm.com> Date: 2017-07-21T14:17:05Z initial commit for batch implementation as @rxin suggested ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org