In filterAllRemaining() method:
public boolean filterAllRemaining() {
return passedPrefix;
}
In filterRowKey():
// if they are equal, return false => pass row
// else return true, filter row
// if we are passed the prefix, set flag
int cmp = Bytes.compareTo(buffer, offset, this.prefix.length, this.
prefix, 0,
this.prefix.length);
if(cmp > 0) {
passedPrefix = true;
}
So once the prefix has passed, the remaining rows would be skipped.
On Mon, Aug 12, 2013 at 11:01 AM, Sudarshan Kadambi (BLOOMBERG/ 731 LEXIN) <
[email protected]> wrote:
> Anyone know if the prefix filter[1] does a full table scan?
>
> 1 -
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/PrefixFilter.html