Singlecolumnvaluefilter and Firstkeyonlyfilter Use note

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.