@InterfaceAudience.Private class VisibilityLabelFilter extends FilterBase
Filter.ReturnCode
Modifier and Type | Field and Description |
---|---|
private Map<ByteRange,Integer> |
cfVsMaxVersions |
private ByteRange |
curFamily |
private int |
curFamilyMaxVersions |
private ByteRange |
curQualifier |
private int |
curQualMetVersions |
private VisibilityExpEvaluator |
expEvaluator |
Constructor and Description |
---|
VisibilityLabelFilter(VisibilityExpEvaluator expEvaluator,
Map<ByteRange,Integer> cfVsMaxVersions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Filter.ReturnCode |
filterCell(Cell cell)
A way to filter based on the column family, column qualifier and/or the column value.
|
boolean |
filterRowKey(Cell cell)
Filters a row based on the row key.
|
int |
hashCode() |
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
|
createFilterFromArguments, filterAllRemaining, filterRow, filterRowCells, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, toByteArray, toString, transformCell
filterKeyValue, isReversed, parseFrom, setReversed
private final VisibilityExpEvaluator expEvaluator
private final Map<ByteRange,Integer> cfVsMaxVersions
private final ByteRange curQualifier
private int curFamilyMaxVersions
private int curQualMetVersions
public VisibilityLabelFilter(VisibilityExpEvaluator expEvaluator, Map<ByteRange,Integer> cfVsMaxVersions)
public boolean filterRowKey(Cell cell) throws IOException
Filter
Filter.filterCell(Cell)
below.
If Filter.filterAllRemaining()
returns true, then Filter.filterRowKey(Cell)
should
also return true.
Concrete implementers can signal a failure condition in their code by throwing an
IOException
.filterRowKey
in class FilterBase
cell
- The first cell coming in the new rowIOException
- in case an I/O or an filter specific failure needs to be signaled.public Filter.ReturnCode filterCell(Cell cell) throws IOException
Filter
ReturnCode.NEXT_ROW
, it should return
ReturnCode.NEXT_ROW
until Filter.reset()
is called just in case the caller calls
for the next row.
Concrete implementers can signal a failure condition in their code by throwing an
IOException
.filterCell
in class Filter
cell
- the Cell in questionIOException
- in case an I/O or an filter specific failure needs to be signaled.Filter.ReturnCode
public void reset() throws IOException
FilterBase
IOException
.reset
in class FilterBase
IOException
- in case an I/O or an filter specific failure needs to be signaled.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.