RE: Internals of hbase scan

2016-12-28 Thread andrew
Reading the source code

-Original Message-
From: Rajeshkumar J [mailto:rajeshkumarit8...@gmail.com] 
Sent: 2016年12月28日 17:00
To: user@hbase.apache.org
Subject: Internals of hbase scan

Can anyone point me where I can learn internals of hbase such as scan in depth.



Re: Internals of hbase scan

2016-12-28 Thread Ted Yu
You can step through using IDE.

Below is sample stack trace from running a unit test:

ClientSimpleScanner(ClientScanner).loadCache() line: 382
ClientSimpleScanner(ClientScanner).nextWithSyncCache() line: 357
ClientSimpleScanner.next() line: 50
ResultScanner$1.hasNext() line: 54
TestMobCompactor.countMobCells(Table) line: 588
TestMobCompactor.testCompactionWithHFileLink() line: 242

Cheers

On Wed, Dec 28, 2016 at 4:44 AM, Rajeshkumar J 
wrote:

> Thanks for ur reply. Whenever I issue ResultScanner.next() can you point me
> the class where will be the control will switch to?
>
> On Wed, Dec 28, 2016 at 6:04 PM, Ted Yu  wrote:
>
> > You can start from http://hbase.apache.org/book.html#hregion.scans
> >
> > To get to know internals, you should look at the code - in IDE such as
> > Eclipse.
> > Start from StoreScanner and read the classes which reference it.
> >
> > Cheers
> >
> > On Wed, Dec 28, 2016 at 12:59 AM, Rajeshkumar J <
> > rajeshkumarit8...@gmail.com
> > > wrote:
> >
> > > Can anyone point me where I can learn internals of hbase such as scan
> in
> > > depth.
> > >
> >
>


Re: Internals of hbase scan

2016-12-28 Thread Rajeshkumar J
Thanks for ur reply. Whenever I issue ResultScanner.next() can you point me
the class where will be the control will switch to?

On Wed, Dec 28, 2016 at 6:04 PM, Ted Yu  wrote:

> You can start from http://hbase.apache.org/book.html#hregion.scans
>
> To get to know internals, you should look at the code - in IDE such as
> Eclipse.
> Start from StoreScanner and read the classes which reference it.
>
> Cheers
>
> On Wed, Dec 28, 2016 at 12:59 AM, Rajeshkumar J <
> rajeshkumarit8...@gmail.com
> > wrote:
>
> > Can anyone point me where I can learn internals of hbase such as scan in
> > depth.
> >
>


Re: Internals of hbase scan

2016-12-28 Thread Ted Yu
You can start from http://hbase.apache.org/book.html#hregion.scans

To get to know internals, you should look at the code - in IDE such as
Eclipse.
Start from StoreScanner and read the classes which reference it.

Cheers

On Wed, Dec 28, 2016 at 12:59 AM, Rajeshkumar J  wrote:

> Can anyone point me where I can learn internals of hbase such as scan in
> depth.
>