Get the App
SLTechnology News&Howtos  ›  Development  › 

What does a HBase filter consist of?

Shulou Source: shulou.com Published: 2022-06-02 07:20:50 11月12日 Update

This article mainly introduces "what is the composition of HBase filter". In daily operation, I believe many people have doubts about what the HBase filter is made of. The editor consulted all kinds of data and sorted out a simple and easy-to-use operation method. I hope it will be helpful for you to answer the question of "what is the composition of HBase filter?" Next, please follow the editor to study!

The HBase filter is a set of API interfaces for accomplishing some of the more advanced requirements.

Filters, also known as push-down judges (push-down predicates), support pushing data filtering standards from the client to the server. RPC query requests with Filter conditions will distribute Filter to each RegionServer. All filters are effective on the server side, so that the filtered data will not be transmitted to the client. These filtering logic is used in the read operation, which can effectively reduce the pressure of network transmission.

Filter composition

The filter mainly consists of the filter itself, the comparator and the comparison operator.

1. Operator

Abstract operator, also known as comparison operator.

LESS: less than

LESS_OR_EQUAL: less than or equal to

EQUAL: equal to

NOT_EQUAL: not equal to

GREATER: greater than

GREATER_OR_EQUAL: greater than or equal to

NO_OP: excluding all values

two。 Comparator

BinaryComparator: a binary comparator for comparing specified byte arrays in dictionary order.

BinaryPrefixComparator: a binary comparator that only compares whether the prefix is the same as the specified byte array.

NullComparator: controls the comparison to determine whether the current value is null.

BitComparator: bit comparator, compared with AND (with), OR (or), and NOT (not) provided by BitwiseOp.

RegexStringComparator: provides a regular comparator that supports value comparison of regular expressions, only EQUAL and non-EQUAL.

SubstringComparator: determines whether the supplied substring appears in the value and is not case-sensitive.

Filter family

HBase has a variety of built-in filters that directly or indirectly inherit from the FilterBase abstract class.

At this point, the study on "what the HBase filter is made of" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Filter comparator learning support binary byte client client operator data array more regular operator help service operation practical effective same Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Information Xiaomi Docker Huawei