1.rowkey以某个内容开头
Filter filtet = new PrefixFilter("ooo".getBytes());
2.rowkey字符串包含方式
Filter filter = new RowFilter(CompareOp.EQUAL,new SubstringComparator("xxx"));
Filter filter2 = new RowFilter(CompareFilter.CompareOp.EQUAL,new RegexStringComparator(".*5$"));
FilterList fl = new FilterList(Operator.MUST_PASS_ONE); fl.addFilter(filter); scan.setFilter(fl);
原文:http://blog.csdn.net/u012841509/article/details/45170797