|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.CompareFilter
org.apache.hadoop.hbase.filter.FamilyFilter
public class FamilyFilter
This filter is used to filter based on the column family. It takes an operator (equal, greater, not equal, etc) and a byte [] comparator for the column family portion of a key.
This filter can be wrapped withWhileMatchFilter and SkipFilter
to add more control.
Multiple filters can be combined using FilterList.
If an already known column family is looked for, use Get.addFamily(byte[])
directly rather than a filter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.CompareFilter |
|---|
CompareFilter.CompareOp |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.filter.Filter |
|---|
Filter.ReturnCode |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.filter.CompareFilter |
|---|
comparator, compareOp |
| Constructor Summary | |
|---|---|
FamilyFilter()
Writable constructor, do not use. |
|
FamilyFilter(CompareFilter.CompareOp familyCompareOp,
WritableByteArrayComparable familyComparator)
Constructor. |
|
| Method Summary | |
|---|---|
Filter.ReturnCode |
filterKeyValue(KeyValue v)
Filters that dont filter by key value can inherit this implementation that includes all KeyValues. |
| Methods inherited from class org.apache.hadoop.hbase.filter.CompareFilter |
|---|
doCompare, getComparator, getOperator, readFields, write |
| Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
|---|
filterAllRemaining, filterRow, filterRow, filterRowKey, getNextKeyHint, hasFilterRow, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FamilyFilter()
public FamilyFilter(CompareFilter.CompareOp familyCompareOp,
WritableByteArrayComparable familyComparator)
familyCompareOp - the compare op for column family matchingfamilyComparator - the comparator for column family matching| Method Detail |
|---|
public Filter.ReturnCode filterKeyValue(KeyValue v)
FilterBase
filterKeyValue in interface FilterfilterKeyValue in class FilterBasev - the KeyValue in question
Filter.ReturnCode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||