org.apache.camel.component.hbase.filters
Class ModelAwareFilterList

java.lang.Object
  extended by org.apache.hadoop.hbase.filter.FilterList
      extended by org.apache.camel.component.hbase.filters.ModelAwareFilterList
All Implemented Interfaces:
ModelAwareFilter<org.apache.hadoop.hbase.filter.FilterList>, org.apache.hadoop.hbase.filter.Filter, org.apache.hadoop.io.Writable

public class ModelAwareFilterList
extends org.apache.hadoop.hbase.filter.FilterList
implements ModelAwareFilter<org.apache.hadoop.hbase.filter.FilterList>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.FilterList
org.apache.hadoop.hbase.filter.FilterList.Operator
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.Filter.ReturnCode
 
Constructor Summary
ModelAwareFilterList()
          Default constructor, filters nothing.
ModelAwareFilterList(org.apache.hadoop.hbase.filter.FilterList.Operator operator)
          Constructor that takes an operator.
ModelAwareFilterList(org.apache.hadoop.hbase.filter.FilterList.Operator operator, List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
          Constructor that takes a set of Filters and an operator.
ModelAwareFilterList(List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
          Constructor that takes a set of Filters.
 
Method Summary
 void apply(org.apache.camel.CamelContext context, HBaseRow rowModel)
          Applies the message to Filter to context.
 ModelAwareFilterList wrap(org.apache.hadoop.hbase.filter.FilterList filter)
          Wraps an existing FilterList filter into a ModelAwareFilterList.
 
Methods inherited from class org.apache.hadoop.hbase.filter.FilterList
addFilter, filterAllRemaining, filterKeyValue, filterRow, filterRow, filterRowKey, getFilters, getNextKeyHint, getOperator, hasFilterRow, readFields, reset, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.filter.Filter
filterAllRemaining, filterKeyValue, filterRow, filterRow, filterRowKey, getNextKeyHint, hasFilterRow, reset
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Constructor Detail

ModelAwareFilterList

public ModelAwareFilterList()
Default constructor, filters nothing. Required though for RPC deserialization.


ModelAwareFilterList

public ModelAwareFilterList(List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Constructor that takes a set of Filters. The default operator MUST_PASS_ALL is assumed.

Parameters:
rowFilters - list of filters

ModelAwareFilterList

public ModelAwareFilterList(org.apache.hadoop.hbase.filter.FilterList.Operator operator)
Constructor that takes an operator.

Parameters:
operator - Operator to process filter set with.

ModelAwareFilterList

public ModelAwareFilterList(org.apache.hadoop.hbase.filter.FilterList.Operator operator,
                            List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Constructor that takes a set of Filters and an operator.

Parameters:
operator - Operator to process filter set with.
rowFilters - Set of row filters.
Method Detail

apply

public void apply(org.apache.camel.CamelContext context,
                  HBaseRow rowModel)
Applies the message to Filter to context.

Specified by:
apply in interface ModelAwareFilter<org.apache.hadoop.hbase.filter.FilterList>

wrap

public ModelAwareFilterList wrap(org.apache.hadoop.hbase.filter.FilterList filter)
Wraps an existing FilterList filter into a ModelAwareFilterList.



Apache CAMEL