@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 |
---|---|
Filter.ReturnCode |
filterKeyValue(Cell cell)
A way to filter based on the column family, column qualifier and/or the column value.
|
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
|
Cell |
transformCell(Cell v)
By default no transformation takes place
Give the filter a chance to transform the passed KeyValue.
|
createFilterFromArguments, filterAllRemaining, filterRow, filterRowCells, filterRowKey, getNextCellHint, getNextKeyHint, hasFilterRow, isFamilyEssential, toByteArray, toString, transform
isReversed, parseFrom, setReversed
private final VisibilityExpEvaluator expEvaluator
private final ByteRange curFamily
private final ByteRange curQualifier
private int curFamilyMaxVersions
private int curQualMetVersions
public VisibilityLabelFilter(VisibilityExpEvaluator expEvaluator, Map<ByteRange,Integer> cfVsMaxVersions)
public Filter.ReturnCode filterKeyValue(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
.filterKeyValue
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 Cell transformCell(Cell v)
FilterBase
transformCell
in class FilterBase
v
- the KeyValue in questionThe transformed KeyValue is what is eventually returned to the client. Most filters will
return the passed KeyValue unchanged.
,
for an example of a
transformation.
Concrete implementers can signal a failure condition in their code by throwing an
{@link IOException}.
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–2019 The Apache Software Foundation. All rights reserved.