org.apache.hadoop.hbase.rest.filter
Class ColumnValueFilterFactory

java.lang.Object
  extended by 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


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
 
Constructor Summary
ColumnValueFilterFactory()
           
 
Method Summary
 RowFilterInterface getFilterFromJSON(String args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnValueFilterFactory

public ColumnValueFilterFactory()
Method Detail

getFilterFromJSON

public RowFilterInterface getFilterFromJSON(String args)
                                     throws HBaseRestException
Specified by:
getFilterFromJSON in interface FilterFactory
Throws:
HBaseRestException


Copyright © 2010 The Apache Software Foundation