org.hbase.async
Class ColumnPrefixFilter
java.lang.Object
org.hbase.async.ScanFilter
org.hbase.async.ColumnPrefixFilter
public final class ColumnPrefixFilter
- extends ScanFilter
Sets a binary prefix to filter results based on the column qualifier.
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.
- Since:
- 1.5
ColumnPrefixFilter
public ColumnPrefixFilter(String prefix)
- Constructor for a UTF-8 prefix string.
ColumnPrefixFilter
public ColumnPrefixFilter(byte[] prefix)
- Constructor.
- Throws:
IllegalArgumentException
- if the prefix is an empty byte array.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010-2015, The Async HBase Authors