@InterfaceAudience.Private public abstract class FilterBase extends Filter
Filter.ReturnCode| 构造器和说明 |
|---|
FilterBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments)
Given the filter's arguments it constructs the filter
|
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that
never stops the filter early.
|
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. |
void |
filterRowCells(List<org.apache.hadoop.hbase.Cell> ignored)
Filters that never filter by modifying the returned List of Cells can
inherit this implementation that does nothing.
|
boolean |
filterRowKey(byte[] buffer,
int offset,
int length)
Filters that do not filter by row key can inherit this implementation that
never filters anything.
|
org.apache.hadoop.hbase.Cell |
getNextCellHint(org.apache.hadoop.hbase.Cell currentKV)
Filters that are not sure which key must be next seeked to, can inherit
this implementation that, by default, returns a null Cell.
|
org.apache.hadoop.hbase.KeyValue |
getNextKeyHint(org.apache.hadoop.hbase.KeyValue currentKV)
已过时。
|
boolean |
hasFilterRow()
Fitlers that never filter by modifying the returned List of Cells can
inherit this implementation that does nothing.
|
boolean |
isFamilyEssential(byte[] name)
By default, we require all scan's column families to be present.
|
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
|
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
String |
toString()
Return filter's info for debugging and logging purpose.
|
org.apache.hadoop.hbase.KeyValue |
transform(org.apache.hadoop.hbase.KeyValue currentKV)
已过时。
|
org.apache.hadoop.hbase.Cell |
transformCell(org.apache.hadoop.hbase.Cell v)
By default no transformation takes place
|
filterKeyValue, isReversed, parseFrom, setReversedpublic void reset()
throws IOException
reset 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.public boolean filterRowKey(byte[] buffer,
int offset,
int length)
throws IOException
filterRowKey 在类中 Filterbuffer - 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
filterAllRemaining 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.public org.apache.hadoop.hbase.Cell transformCell(org.apache.hadoop.hbase.Cell v)
throws IOException
transformCell 在类中 Filterv - the KeyValue in questionIOException - in case an I/O or an filter specific failure needs to be signaled.The 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}.@Deprecated public org.apache.hadoop.hbase.KeyValue transform(org.apache.hadoop.hbase.KeyValue currentKV) throws IOException
transformCell(Cell).
This is for transition from 0.94 -> 0.96transform 在类中 FilterIOExceptionpublic void filterRowCells(List<org.apache.hadoop.hbase.Cell> ignored) throws IOException
filterRowCells 在类中 Filterignored - the list of Cells to be filteredIOException - in case an I/O or an filter specific failure needs to be signaled.public boolean hasFilterRow()
hasFilterRow 在类中 Filterpublic boolean filterRow()
throws IOException
Filter.filterKeyValue(Cell) can inherit this implementation that
never filters a row.filterRow 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.@Deprecated public org.apache.hadoop.hbase.KeyValue getNextKeyHint(org.apache.hadoop.hbase.KeyValue currentKV) throws IOException
getNextKeyHint 在类中 FilterIOException - Function is Deprecated. Use Filter.getNextCellHint(Cell) instead.public org.apache.hadoop.hbase.Cell getNextCellHint(org.apache.hadoop.hbase.Cell currentKV)
throws IOException
getNextCellHint 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.public boolean isFamilyEssential(byte[] name)
throws IOException
isFamilyEssential 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
filterArguments - the filter's argumentspublic String toString()
public byte[] toByteArray()
throws IOException
toByteArray 在类中 FilterIOException - in case an I/O or an filter specific failure needs to be signaled.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.