accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rainer <rainer.pe...@gmail.com>
Subject BatchScanner sort question
Date Fri, 25 Oct 2013 16:59:40 GMT
Hi,

in the BatchScanner JavaDoc it says "Also only use this *when you do not
care about the returned data being in sorted order*.* *If you want to
lookup a few ranges and expect those ranges to contain a lot of data, then
use the Scanner instead. Also, the Scanner will return data in sorted
order, this will not."

I'm not a 100% sure how to interpret this, so I was wondering if anyone of
you could help me clarify that:

*Option 1)*
Rows are not sorted, but all Key/Value Pairs with the same Row Key are in
sequence

Example:
Format: Key:CF:CQ:Value
A:CF1:CQ1:1
A:CF2:CQ2:2
C:CF1:CQ1:1
B:CF1:CQ1:1

*Option2)*
Rows are not sorted and not even Key/Value Pairs with the same Row Key are
in sequence

Example:
Format: Key:CF:CQ:Value
A:CF1:CQ1:1
C:CF1:CQ1:1
A:CF2:CQ2:2
B:CF1:CQ1:1


Thanks,
Peter

Mime
View raw message