hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianshi Huang <jianshi.hu...@gmail.com>
Subject Re: Scan columns of a row within a Range
Date Fri, 18 Jul 2014 04:52:57 GMT
Yes, I found the info from a nice blog article. Thanks Ted!

Jianshi


On Thu, Jul 17, 2014 at 10:07 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> ColumnRangeFilter implements getNextCellHint() in facilitating jumping to
> the minColumn.
> When current column is past maxColumn, it skips to next row.
>
> So ColumnRangeFilter is very effective.
>
> Cheers
>
>
> On Thu, Jul 17, 2014 at 12:45 AM, Jianshi Huang <jianshi.huang@gmail.com>
> wrote:
>
> > Hi Esteban,
> >
> > Yes, I found it moments ago. Is it as efficient as the Row scan?
> >
> > And can I have millions of columns for a row with no or little
> performance
> > impaction? (the traditional tall vs wide problem, the hbase manual
> > recommends tall table than wide table).
> >
> >
> > Jianshi
> >
> >
> > On Thu, Jul 17, 2014 at 3:01 PM, Esteban Gutierrez <esteban@cloudera.com
> >
> > wrote:
> >
> > > Hi Jianshi,
> > >
> > > Have you looked into the ColumnRangeFilter?
> > >
> > >
> >
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/ColumnRangeFilter.html
> > >
> > > cheers,
> > > esteban.
> > >
> > >
> > > --
> > > Cloudera, Inc.
> > >
> > >
> > >
> > > On Wed, Jul 16, 2014 at 11:40 PM, Jianshi Huang <
> jianshi.huang@gmail.com
> > >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I scanned through HBase' Scan API and couldn't find out how to scan a
> > > range
> > > > of columns in a row.
> > > >
> > > > It seems I can only do scan(startRow, endRow), which are both just
> > > RowKeys.
> > > >
> > > > What's the most efficient way to do it? Should I use a Filter? I
> heard
> > > > filter is not as efficient as RK scans, how much slower is it?
> > > >
> > > > (BTW, I was using Accumulo for the same thing and it has a really
> nice
> > > API
> > > > (Range, Key) for it. A Key is a combination of RK+CF+CQ+TS.)
> > > >
> > > > Am I missing anything?
> > > >
> > > > Cheers,
> > > > --
> > > > Jianshi Huang
> > > >
> > > > LinkedIn: jianshi
> > > > Twitter: @jshuang
> > > > Github & Blog: http://huangjs.github.com/
> > > >
> > >
> >
> >
> >
> > --
> > Jianshi Huang
> >
> > LinkedIn: jianshi
> > Twitter: @jshuang
> > Github & Blog: http://huangjs.github.com/
> >
>



-- 
Jianshi Huang

LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/

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