@InterfaceAudience.Private public class FilterListWithOR extends FilterListBase
Filter.ReturnCode
filters, subFiltersIncludedCell
Constructor and Description |
---|
FilterListWithOR(List<Filter> filters) |
Modifier and Type | Method and Description |
---|---|
void |
addFilterLists(List<Filter> filters) |
boolean |
equals(Object obj) |
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that
never stops the filter early.
|
Filter.ReturnCode |
filterKeyValue(Cell c)
A way to filter based on the column family, column qualifier and/or the column value.
|
boolean |
filterRow()
Filters that never filter by rows based on previously gathered state from
Filter.filterKeyValue(Cell) can inherit this implementation that
never filters a row. |
boolean |
filterRowKey(byte[] rowKey,
int offset,
int length)
Filters that do not filter by row key can inherit this implementation that
never filters anything.
|
protected String |
formatLogFilters(List<Filter> logFilters) |
Cell |
getNextCellHint(Cell currentCell)
Filters that are not sure which key must be next seeked to, can inherit
this implementation that, by default, returns a null Cell.
|
int |
hashCode() |
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
|
checkAndGetReversed, compareCell, filterRowCells, getFilters, hasFilterRow, isEmpty, isFamilyEssential, isInReturnCodes, setReversed, size, toString, transformCell
createFilterFromArguments, getNextKeyHint, toByteArray, transform
isReversed, parseFrom
public void addFilterLists(List<Filter> filters)
addFilterLists
in class FilterListBase
protected String formatLogFilters(List<Filter> logFilters)
formatLogFilters
in class FilterListBase
public Filter.ReturnCode filterKeyValue(Cell c) 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
c
- 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.public boolean filterRowKey(byte[] rowKey, int offset, int length) throws IOException
FilterBase
Filter.filterKeyValue(Cell)
below.
Concrete implementers can signal a failure condition in their code by throwing an
IOException
.filterRowKey
in class FilterBase
rowKey
- buffer containing row keyoffset
- offset into buffer where row key startslength
- length of the row keyIOException
- in case an I/O or an filter specific failure needs to be signaled.public boolean filterAllRemaining() throws IOException
FilterBase
IOException
.filterAllRemaining
in class FilterBase
IOException
- in case an I/O or an filter specific failure needs to be signaled.public boolean filterRow() throws IOException
FilterBase
Filter.filterKeyValue(Cell)
can inherit this implementation that
never filters a row.
Last chance to veto row based on previous Filter.filterKeyValue(Cell)
calls. The filter
needs to retain state then return a particular value for this call if they wish to exclude a
row if a certain column is missing (for example).
Concrete implementers can signal a failure condition in their code by throwing an
IOException
.filterRow
in class FilterBase
IOException
- in case an I/O or an filter specific failure needs to be signaled.public Cell getNextCellHint(Cell currentCell) throws IOException
FilterBase
IOException
.getNextCellHint
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.