org.apache.hadoop.hbase.rest.filter
Class RowFilterSetFactory
java.lang.Object
org.apache.hadoop.hbase.rest.filter.RowFilterSetFactory
- All Implemented Interfaces:
- FilterFactory, FilterFactoryConstants
public class RowFilterSetFactory
- extends Object
- implements FilterFactory
Constructs a RowFilterSet from a JSON argument String.
Assumes that the input is a JSONArray consisting of JSON Object version of
the filters that you wish to mash together in an AND statement.
The Syntax for the individual inner filters are defined by their respective
FilterFactory. If a filter factory for said Factory does not exist, a
MalformedFilterJSONException will be thrown.
Currently OR Statements are not supported even though at a later iteration
they could be supported easily.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowFilterSetFactory
public RowFilterSetFactory()
getFilterFromJSON
public RowFilterInterface getFilterFromJSON(String args)
throws HBaseRestException
- Specified by:
getFilterFromJSON
in interface FilterFactory
- Throws:
HBaseRestException
Copyright © 2010 The Apache Software Foundation