hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Vasilenko <aa.vasile...@gmail.com>
Subject Re: row filter - binary comparator at certain range
Date Thu, 09 Feb 2012 18:38:51 GMT
Hi Stack,

Thanks for info. Then how is it usually done with time-based keys? General
recommendation is prepend timestamp with something random prefix to shard
table properly.
But what if I want to scan table for certain time range? Scan whole table,
skipping random prefix and filter by time range? In this case I find
BinaryRangeComparator useful, however I suppose it's not a common solution
for this use case.

Alexandr Vasilenko

2012/2/9 Stack <stack@duboce.net>

> On Thu, Feb 9, 2012 at 10:03 AM, Alex Vasilenko <aa.vasilenko@gmail.com>
> wrote:
> > I'm a brand new user of hbase and hadoop in general. Trying to evaluate
> > hbase for our needs. Question is: why there's BinaryPrefixComparator, but
> > no BinaryRangeComparator, where you specify what range of key should be
> > compared. Are there any concerns about using it?
> >
> Welcome.
> My guess is that no one had the need of a BinaryRangeComparator up to this.
> I do not see an issue w/ you writing such a filter
> BinaryRangeComparator if you need it.
> St.Ack

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