[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.
How risky do you think this is?  I'm wondering if we should add a flag that turns off the partition skipping.  We don't even have to document it...