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.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getId() |
protected com.google.protobuf.ByteString |
getState() |
String |
toString() |
getFilterIdpublic ColumnPrefixFilter(String prefix)
public ColumnPrefixFilter(byte[] prefix)
IllegalArgumentException - if the prefix is an empty byte array.protected com.google.protobuf.ByteString getState()
getState in class ScanFilterprotected String getId()
getId in class ScanFilterCopyright ? 2010-2016, The Async HBase Authors