org.apache.hadoop.hbase.rest.filter
Class ColumnValueFilterFactory
java.lang.Object
org.apache.hadoop.hbase.rest.filter.ColumnValueFilterFactory
- All Implemented Interfaces:
- FilterFactory, FilterFactoryConstants
public class ColumnValueFilterFactory
- extends Object
- implements FilterFactory
FilterFactory that constructs a ColumnValueFilter from a JSON arg String.
Expects a Stringified JSON argument with the following form:
{ "column_name" : "MY_COLUMN_NAME", "compare_op" : "INSERT_COMPARE_OP_HERE",
"value" : "MY_COMPARE_VALUE" }
The current valid compare ops are: equal, greater, greater_or_equal, less,
less_or_equal, not_equal
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnValueFilterFactory
public ColumnValueFilterFactory()
getFilterFromJSON
public RowFilterInterface getFilterFromJSON(String args)
throws HBaseRestException
- Specified by:
getFilterFromJSON
in interface FilterFactory
- Throws:
HBaseRestException
Copyright © 2010 The Apache Software Foundation