@InterfaceAudience.Private public final class FilterWrapper extends Filter
Scan.getFilter().| Modifier and Type | Class and Description |
|---|---|
static class |
FilterWrapper.FilterRowRetCode |
Filter.ReturnCode| Constructor and Description |
|---|
FilterWrapper(Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterAllRemaining() |
Filter.ReturnCode |
filterCell(Cell c) |
Filter.ReturnCode |
filterKeyValue(Cell c)
Deprecated.
|
boolean |
filterRow() |
void |
filterRowCells(List<Cell> kvs) |
FilterWrapper.FilterRowRetCode |
filterRowCellsWithRet(List<Cell> kvs) |
boolean |
filterRowKey(byte[] buffer,
int offset,
int length) |
boolean |
filterRowKey(Cell cell) |
Cell |
getNextCellHint(Cell currentCell) |
boolean |
hasFilterRow() |
boolean |
isFamilyEssential(byte[] name) |
static FilterWrapper |
parseFrom(byte[] pbBytes) |
void |
reset() |
byte[] |
toByteArray()
Returns The filter serialized using pb
|
Cell |
transformCell(Cell v) |
isReversed, setReversedpublic FilterWrapper(Filter filter)
public byte[] toByteArray()
throws IOException
toByteArray in class FilterIOExceptionpublic static FilterWrapper parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized FilterWrapper instanceFilterWrapper made from bytesDeserializationExceptiontoByteArray()public void reset()
throws IOException
reset in class FilterIOExceptionpublic boolean filterAllRemaining()
throws IOException
filterAllRemaining in class FilterIOExceptionpublic boolean filterRow()
throws IOException
filterRow in class FilterIOExceptionpublic Cell getNextCellHint(Cell currentCell) throws IOException
getNextCellHint in class FilterIOExceptionpublic boolean filterRowKey(byte[] buffer,
int offset,
int length)
throws IOException
filterRowKey in class FilterIOExceptionpublic boolean filterRowKey(Cell cell) throws IOException
filterRowKey in class FilterIOException@Deprecated public Filter.ReturnCode filterKeyValue(Cell c) throws IOException
filterKeyValue in class FilterIOExceptionpublic Filter.ReturnCode filterCell(Cell c) throws IOException
filterCell in class FilterIOExceptionpublic Cell transformCell(Cell v) throws IOException
transformCell in class FilterIOExceptionpublic boolean hasFilterRow()
hasFilterRow in class Filterpublic void filterRowCells(List<Cell> kvs) throws IOException
filterRowCells in class FilterIOExceptionpublic FilterWrapper.FilterRowRetCode filterRowCellsWithRet(List<Cell> kvs) throws IOException
IOExceptionpublic boolean isFamilyEssential(byte[] name)
throws IOException
isFamilyEssential in class FilterIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.