hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Filters and versions
Date Sat, 06 Jul 2013 15:25:23 GMT
Take a look at SingleColumnValueFilter#filterKeyValue() which respects flag
latestVersionOnly.

Cheers

On Sat, Jul 6, 2013 at 8:15 AM, Kristoffer Sjögren <stoffe@gmail.com> wrote:

> Hi
>
> Im writing a custom filter it seems that filterKeyValue(KeyValue kv) give
> me every version, which is fine, but im only interested in the latest
> version.
>
> I have tried KeyValue.isLatestTimestamp() to filter out older versions but
> this method always returns false?
>
> Also tried setMaxVersions(1) on the Scanner but this doesnt seem to help.
>
> Any advice?
>
> Cheers,
> -Kristoffer
>

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