Tablespace::getVolume plays a role to guess or compute exactly the table volume. This volume result is usually used for join optimization. But, currently Tablespace::getVolume just returns whole table volume. It may cause sub optimal join order, especially in partitioned tables or indexable tables like HBase.
The main objective of this patch is to improve getVolume method to take filter predicates and return more reasonable volume sizes according to predicates.