hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Rodionov <vrodio...@carrieriq.com>
Subject RE: Scan operator ignores setMaxVersions (0.20.6)
Date Fri, 28 Jan 2011 00:13:17 GMT
My bad

I should have been using Result.getMap() to get all versions of a cell.

Best regards,
Vladimir Rodionov
Principal Platform Engineer
Carrier IQ, www.carrieriq.com
e-mail: vrodionov@carrieriq.com

________________________________________
From: Vladimir Rodionov
Sent: Thursday, January 27, 2011 4:05 PM
To: dev@hbase.apache.org
Subject: RE: Scan operator ignores setMaxVersions (0.20.6)

Integer.MAX_VALUE

Best regards,
Vladimir Rodionov
Principal Platform Engineer
Carrier IQ, www.carrieriq.com
e-mail: vrodionov@carrieriq.com

________________________________________
From: Ryan Rawson [ryanobjc@gmail.com]
Sent: Thursday, January 27, 2011 3:13 PM
To: dev@hbase.apache.org
Subject: Re: Scan operator ignores setMaxVersions (0.20.6)

how many versions is the column family configured for?  the
maxVersions will never return more than that, so if it is 1 you wont
have more than 1.

-ryan

On Thu, Jan 27, 2011 at 3:08 PM, Vladimir Rodionov
<vrodionov@carrieriq.com> wrote:
>
> Although this version is not supported but may be somebody can advice how to get ALL
versions of rows from HTable scan?
>
> This code:
>
>        public Iterator<OtaUploadWritable> getUploadsByProfileId(String profile,
>                        long start, long end) throws IOException {
>
>                Scan scan = new Scan(getStartKey(profile), getEndKey(profile));
>                scan.addColumn(COLFAMILY, COL_REF);
>                scan.addColumn(COLFAMILY, COL_UPLOAD);
>                scan.setTimeRange(start, end);
>                scan.setMaxVersions();
>                ResultScanner rs = this.getScanner(scan);
>                return new ResultScannerIterator(rs);
>        }
>
> does not seem work correctly (only last versions of rows get into the result set)
>
> Best regards,
> Vladimir Rodionov
> Principal Platform Engineer
> Carrier IQ, www.carrieriq.com
> e-mail: vrodionov@carrieriq.com
>

Mime
View raw message