Package com.mapr.fs.hbase.filter
Class KeySamplingFilter
- java.lang.Object
-
- org.apache.hadoop.hbase.filter.Filter
-
- org.apache.hadoop.hbase.filter.FilterBase
-
- com.mapr.fs.hbase.filter.KeySamplingFilter
-
@Public @Stable public class KeySamplingFilter extends org.apache.hadoop.hbase.filter.FilterBaseA filter that will only return the first KV from each row.This filter can be used to more efficiently perform row count operations.
-
-
Constructor Summary
Constructors Constructor Description KeySamplingFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.hbase.filter.FiltercreateFilterFromArguments(java.util.ArrayList<byte[]> filterArguments)org.apache.hadoop.hbase.filter.Filter.ReturnCodefilterKeyValue(org.apache.hadoop.hbase.Cell v)static KeySamplingFilterparseFrom(byte[] pbBytes)
-
-
-
Method Detail
-
createFilterFromArguments
public static org.apache.hadoop.hbase.filter.Filter createFilterFromArguments(java.util.ArrayList<byte[]> filterArguments)
-
parseFrom
public static KeySamplingFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
- Parameters:
pbBytes- A pb serializedFirstKeyOnlyFilterinstance- Returns:
- An instance of
FirstKeyOnlyFiltermade frombytes - Throws:
org.apache.hadoop.hbase.exceptions.DeserializationException- See Also:
FilterBase.toByteArray()
-
filterKeyValue
public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.Cell v) throws java.io.IOException- Specified by:
filterKeyValuein classorg.apache.hadoop.hbase.filter.Filter- Throws:
java.io.IOException
-
-