[SPARK-2961][SQL] Use statistics to prune batches within cached partitions

This PR is based on #1883 authored by @marmbrus. Key differences:

1. Batch pruning instead of partition pruning

   When #1883 was authored, batched column buffer building (#1880) hadn't been introduced. This PR combines these two and provide partition batch level pruning, which leads to smaller memory footprints and can generally skip more elements. The cost is that the pruning predicates are evaluated more frequently (partition number multiplies batch number per partition).

1. More filters are supported

   Filter predicates consist of `=`, `<`, `<=`, `>`, `>=` and their conjunctions and disjunctions are supported.
Yeah exactly.  I think in general it might be a good idea to guard these kind of optimizations behind feature flags in case bugs are found in the future.  We can remove them after enough time has passed.