|
||||||||||
| 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.DependentColumnFilter
public class DependentColumnFilter
A filter for adding inter-column timestamp matching Only cells with a correspondingly timestamped entry in the target column will be retained Not compatible with Scan.setBatch as operations need full rows for correct filtering
| 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 | |
|---|---|
protected byte[] |
columnFamily
|
protected byte[] |
columnQualifier
|
protected boolean |
dropDependentColumn
|
protected Set<Long> |
stampSet
|
| Fields inherited from class org.apache.hadoop.hbase.filter.CompareFilter |
|---|
comparator, compareOp |
| Constructor Summary | |
|---|---|
DependentColumnFilter()
Should only be used for writable |
|
DependentColumnFilter(byte[] family,
byte[] qualifier)
Constructor for DependentColumn filter. |
|
DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn)
Constructor for DependentColumn filter. |
|
DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn,
CompareFilter.CompareOp valueCompareOp,
WritableByteArrayComparable valueComparator)
Build a dependent column filter with value checking dependent column varies will be compared using the supplied compareOp and comparator, for usage of which refer to CompareFilter |
|
| Method Summary | |
|---|---|
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that never stops the filter early. |
Filter.ReturnCode |
filterKeyValue(KeyValue v)
Filters that dont filter by key value can inherit this implementation that includes all KeyValues. |
boolean |
filterRow()
Filters that never filter by rows based on previously gathered state from |
void |
filterRow(List<KeyValue> kvs)
Filters that never filter by modifying the returned List of KeyValues can inherit this implementation that does nothing. |
boolean |
filterRowKey(byte[] buffer,
int offset,
int length)
Filters that do not filter by row key can inherit this implementation that never filters anything. |
boolean |
hasFilterRow()
Fitlers that never filter by modifying the returned List of KeyValues can inherit this implementation that does nothing. |
void |
readFields(DataInput in)
|
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit this null/empty implementation. |
void |
write(DataOutput out)
|
| Methods inherited from class org.apache.hadoop.hbase.filter.CompareFilter |
|---|
doCompare, getComparator, getOperator |
| Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
|---|
getNextKeyHint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] columnFamily
protected byte[] columnQualifier
protected boolean dropDependentColumn
protected Set<Long> stampSet
| Constructor Detail |
|---|
public DependentColumnFilter()
public DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn,
CompareFilter.CompareOp valueCompareOp,
WritableByteArrayComparable valueComparator)
CompareFilter
family - dependent column familyqualifier - dependent column qualifierdropDependentColumn - whether the column should be discarded aftervalueCompareOp - comparison opvalueComparator - comparator
public DependentColumnFilter(byte[] family,
byte[] qualifier)
family - name of target column familyqualifier - name of column qualifier
public DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn)
family - name of dependent column familyqualifier - name of dependent qualifierdropDependentColumn - whether the dependent columns keyvalues should be discarded| Method Detail |
|---|
public boolean filterAllRemaining()
FilterBase
filterAllRemaining in interface FilterfilterAllRemaining in class FilterBasepublic Filter.ReturnCode filterKeyValue(KeyValue v)
FilterBase
filterKeyValue in interface FilterfilterKeyValue in class FilterBasev - the KeyValue in question
Filter.ReturnCodepublic void filterRow(List<KeyValue> kvs)
FilterBase
filterRow in interface FilterfilterRow in class FilterBasekvs - the list of keyvalues to be filteredpublic boolean hasFilterRow()
FilterBase
hasFilterRow in interface FilterhasFilterRow in class FilterBasepublic boolean filterRow()
FilterBase
filterRow in interface FilterfilterRow in class FilterBase
public boolean filterRowKey(byte[] buffer,
int offset,
int length)
FilterBase
filterRowKey in interface FilterfilterRowKey in class FilterBasebuffer - buffer containing row keyoffset - offset into buffer where row key startslength - length of the row key
public void reset()
FilterBase
reset in interface Filterreset in class FilterBase
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class CompareFilterIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class CompareFilterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||