HBASE-8198 Backport HBASE-8063(Filter HFiles based on first/last key) into 0.94 (Liang Xie)



git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.94@1462231 13f79535-47bb-0310-9956-ffa450edef68
HBASE-8198 Add the new test



git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.94@1462233 13f79535-47bb-0310-9956-ffa450edef68