@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, transformCellfilterKeyValue, isReversed, parseFrom, setReversedprivate 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
FilterFilter.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 FilterBasecell - 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
FilterReturnCode.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 Filtercell - the Cell in questionIOException - in case an I/O or an filter specific failure needs to be signaled.Filter.ReturnCodepublic void reset() throws IOException
FilterBaseIOException.reset in class FilterBaseIOException - in case an I/O or an filter specific failure needs to be signaled.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.