@InterfaceAudience.Public
@InterfaceStability.Stable
public class KeyOnlyFilter
extends org.apache.hadoop.hbase.filter.FilterBase
This filter can be used to grab all of the keys without having to also grab the values.
Filter.ReturnCode
Constructor and Description |
---|
KeyOnlyFilter() |
KeyOnlyFilter(boolean lenAsVal) |
Modifier and Type | Method and Description |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
static KeyOnlyFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
Cell |
transformCell(Cell kv)
By default no transformation takes place
|
filterAllRemaining, filterKeyValue, filterRow, filterRow, filterRowCells, filterRowKey, getNextCellHint, getNextKeyHint, hasFilterRow, isFamilyEssential, reset, toString, transform
isReversed, setReversed
public KeyOnlyFilter()
public KeyOnlyFilter(boolean lenAsVal)
public Cell transformCell(Cell kv)
org.apache.hadoop.hbase.filter.FilterBase
transformCell
in class org.apache.hadoop.hbase.filter.FilterBase
kv
- 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 static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
org.apache.hadoop.hbase.filter.FilterBase
toByteArray
in class org.apache.hadoop.hbase.filter.FilterBase
public static KeyOnlyFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes
- A pb serialized KeyOnlyFilter
instanceKeyOnlyFilter
made from bytes
org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray()
Copyright © 2014 The Apache Software Foundation. All rights reserved.