Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Filters and versions


+
Kristoffer Sjögren 2013-07-06, 15:15
Copy link to this message
-
Re: Filters and versions
Take a look at SingleColumnValueFilter#filterKeyValue() which respects flag
latestVersionOnly.

Cheers

On Sat, Jul 6, 2013 at 8:15 AM, Kristoffer Sjögren <[EMAIL PROTECTED]> 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
>
+
Kristoffer Sjögren 2013-07-06, 15:40
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB