Filterlist.addfilter (New Singlecolumnvaluefilter (Bytes
. Tobytes ("Information"), Bytes.tobytes (key),
Compareop.equal, Bytes.tobytes (Column.get (key)));
Filterlist.addfilter (New Firstkeyonlyfilter ());
Firstkeyonlyfilter can improve the efficiency of the query, if you specify the start and end of the Rowkey, do not add additional filters can be added firstkeyonlyfilter improve query efficiency
If you want to use Singlecolumnvaluefilter to come over the column values, it is best not to use with firstkeyonlyfilter, if used together, you can only filter the value of the first column, the other column filter is invalid.
Firstkeyonlyfilter have good and bad, generally specify the start and end of the Rowkey, query efficiency is still possible.
Transferred from: http://www.58os.com/BBS/OSChinaBlog/Article-7126.html
Singlecolumnvaluefilter and Firstkeyonlyfilter Use note