hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: PrefixFilter
Date Mon, 12 Aug 2013 18:08:09 GMT
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) <
skadambi@bloomberg.net> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message