org.apache.hadoop.hbase.rest.filter
Interface FilterFactory

All Superinterfaces:
FilterFactoryConstants
All Known Implementing Classes:
ColumnValueFilterFactory, InclusiveStopRowFilterFactory, PageRowFilterFactory, RegExpRowFilterFactory, RowFilterSetFactory, StopRowFilterFactory, WhileMatchRowFilterFactory

public interface FilterFactory
extends FilterFactoryConstants

Constructs Filters from JSON. Filters are defined as JSON Objects of the form: { "type" : "FILTER_CLASS_NAME", "args" : "FILTER_ARGUMENTS" } For Filters like WhileMatchRowFilter, nested Filters are supported. Just serialize a different filter in the form (for instance if you wanted to use WhileMatchRowFilter with a StopRowFilter: { "type" : "WhileMatchRowFilter", "args" : { "type" : "StopRowFilter", "args" : "ROW_KEY_TO_STOP_ON" } } For filters like RowSetFilter, nested Filters AND Filter arrays are supported. So for instance If one wanted to do a RegExp RowFilter UNIONed with a WhileMatchRowFilter(StopRowFilter), you would look like this: { "type" : "RowFilterSet", "args" : [ { "type" : "RegExpRowFilter", "args" : "MY_REGULAR_EXPRESSION" }, { "type" : "WhileMatchRowFilter" "args" : { "type" : "StopRowFilter" "args" : "MY_STOP_ROW_EXPRESSION" } } ] }


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.rest.filter.FilterFactoryConstants
FilterFactoryConstants.MalformedFilterException
 
Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.rest.filter.FilterFactoryConstants
ARGUMENTS, COLUMN_NAME, COMPARE_OP, TYPE, VALUE
 
Method Summary
 RowFilterInterface getFilterFromJSON(String args)
           
 

Method Detail

getFilterFromJSON

RowFilterInterface getFilterFromJSON(String args)
                                     throws HBaseRestException
Throws:
HBaseRestException


Copyright © 2010 The Apache Software Foundation