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
Constructor and Description |
---|
KeyOnlyFilter() |
KeyOnlyFilter(boolean lenAsVal) |
Modifier and Type | Method and Description |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
void |
readFields(DataInput in) |
KeyValue |
transform(KeyValue kv)
By default no transformation takes place
|
void |
write(DataOutput out) |
filterAllRemaining, filterKeyValue, filterRow, filterRow, filterRowKey, getNextKeyHint, hasFilterRow, isFamilyEssential, isFamilyEssential, reset, toString
public KeyOnlyFilter()
public KeyOnlyFilter(boolean lenAsVal)
public KeyValue transform(KeyValue kv)
FilterBase
transform
in interface Filter
transform
in class 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.
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.