public final class ColumnPrefixFilter extends ScanFilter
Efficiently compares the column qualifier bytes up to the length of the prefix to see if it matches.
Only setting this filter will return all rows that match the criteria but at the same will cost a full table scan.
Constructor and Description |
---|
ColumnPrefixFilter(byte[] prefix)
Constructor.
|
ColumnPrefixFilter(String prefix)
Constructor for a UTF-8 prefix string.
|
public ColumnPrefixFilter(String prefix)
public ColumnPrefixFilter(byte[] prefix)
IllegalArgumentException
- if the prefix is an empty byte array.