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() |
getFilterId
public 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 ScanFilter
protected String getId()
getId
in class ScanFilter
Copyright ? 2010-2018, The Async HBase Authors