### How To Use

• method setFilter() is desigend for Get and Scan to set the filter. Like this way:

setFilter(filter);

### CompareFilter

• Filters succeeded from CompareFilter provides the several parameters to filter the value, such as LESS, LESSOREQUAL, EQUAL, NOTEQUAL, GREATEROREQUAL, GREATER, NO_OP. Followings are the filter enumerations of CompareFilter.
• BinaryComparator
• BinaryPrefixComparator(from left to right)
• BitComparator(Operation on bits)
• NullComparator(filter with null value)
• RegexStringComparator(Regular expression is used in this case)
• SubStringComparator(All the parameters are regarded as strings)
• An example for filters with column families as returnings:

### FilterBase

• because CompareFilter provides only operation on rows, FilterBase is designed here for column filtering here. Here are the enumerations of the class inherited from this base class.
• SingleColumnValueFilter, to get the row entries according to the column value.
• SingleColumnValueFilter, to get the row entries according to the colum value but not to contain the filter column(s).
• PrefixFilter, return rows that satisfy the prefix.
• KeyOnlyFilter, return only the key without any value.
• InclusiveStopFilter, return rows that contain the stop line.
• FirstKeyOnlyFilter, This kind of ckass is usually utilized for rows statistics. PS. because the first key of a line is usually the first-established column, this kind of class is widely used to get the olddest column value as well
• TimeStampsFilter, as the name inplied, filter with the timestamps.
• ColumnCountGetFilter, restrict the number of columns which will be returned.
• ColumnPaginationFilter, Paginate the column of one line.
• ColumnPrefixFilter, filter the data according to the prefix of the column name.
• RandomRowFilter, filter with a random value.

###Addtional Filter

• This kind of filter deal with the results of other filters to get the second-filtering results.
• WhileMatchFilter. Its function is similar with the above one. However, compared with that, it will not continue scanning after finding one column value not stisfying the condition. Therefore, it’s more effcient.
• SkipFilter. If some colimn of a line needs filtering, the whole line will be removed from the return queue. More details:

###FilterList

• FilterList accepts several filters to work sImultaneously. More details:

###Custom Filter

• Users can implement Filter interface or inherit from the FilterBase class to define custom filter. The following example is to find the specific line:
• Ps. If you want to apply your custom filter into use, you have to pack it up into a JAR package, give it away to the region servers, modify the configuration files with name hbase-env.sh and restart the deamon. After that, you can test your filters. One more example for modifying configuration file: