@InterfaceAudience.Public @InterfaceStability.Stable public class KeyOnlyFilter extends FilterBase
This filter can be used to grab all of the keys without having to also grab the values.
Filter.ReturnCode| 构造器和说明 |
|---|
KeyOnlyFilter() |
KeyOnlyFilter(boolean lenAsVal) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
boolean |
equals(Object obj) |
Filter.ReturnCode |
filterKeyValue(Cell ignored)
A way to filter based on the column family, column qualifier and/or the column value.
|
int |
hashCode() |
static KeyOnlyFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
Cell |
transformCell(Cell cell)
By default no transformation takes place
Give the filter a chance to transform the passed KeyValue.
|
filterAllRemaining, filterRow, filterRowCells, filterRowKey, getNextCellHint, getNextKeyHint, hasFilterRow, isFamilyEssential, reset, toString, transformisReversed, setReversedpublic Cell transformCell(Cell cell)
FilterBasetransformCell 在类中 FilterBasecell - 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 Filter.ReturnCode filterKeyValue(Cell ignored) 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.filterKeyValue 在类中 Filterignored - the Cell in questionIOException - in case an I/O or an filter specific failure needs to be signaled.Filter.ReturnCodepublic static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
FilterBasetoByteArray 在类中 FilterBasepublic static KeyOnlyFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized KeyOnlyFilter instanceKeyOnlyFilter made from bytesDeserializationExceptiontoByteArray()Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.