You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Aaron <aa...@gmail.com> on 2014/02/20 21:18:51 UTC
Iterator Priorities question
I assume this is correct..but, just double checking.
>From the JavaDocs:
*priority - determines the order in which iterators are applied (system
iterators are always applied first, then user-configured iterators, lowest
priority first)*
So, even if I set a priority of "1" for a user iterator, it will (should?)
come after all system iterators have run on a particular
scan/min/majc..correct?
I noticed that the VersionIterator looks to set a priority of 20 by
default..is there a particular reason as to why it's set there? Just more
curious than anything.
Cheers,
Aaron
Re: Iterator Priorities question
Posted by Christopher <ct...@apache.org>.
To add to what John said, I just want to point out that the
VersioningIterator is not a system iterator. It's just a really,
really useful user iterator, so it's included by default. 20 is pretty
arbitrary, but basically allows users to set additional iterators both
before and after it, without moving it to a different priority.
--
Christopher L Tubbs II
http://gravatar.com/ctubbsii
On Thu, Feb 20, 2014 at 3:28 PM, John Vines <vi...@apache.org> wrote:
> Yes, system iterators will always come before any user space iterators.
>
> Version iterator is set to 20 by default so users can easily put in
> iterators before and after it without having to change the versioning as
> well.
>
>
> On Thu, Feb 20, 2014 at 3:18 PM, Aaron <aa...@gmail.com> wrote:
>>
>> I assume this is correct..but, just double checking.
>>
>> From the JavaDocs:
>>
>> priority - determines the order in which iterators are applied (system
>> iterators are always applied first, then user-configured iterators, lowest
>> priority first)
>>
>> So, even if I set a priority of "1" for a user iterator, it will (should?)
>> come after all system iterators have run on a particular
>> scan/min/majc..correct?
>>
>> I noticed that the VersionIterator looks to set a priority of 20 by
>> default..is there a particular reason as to why it's set there? Just more
>> curious than anything.
>>
>> Cheers,
>> Aaron
>
>
Re: Iterator Priorities question
Posted by John Vines <vi...@apache.org>.
Yes, system iterators will always come before any user space iterators.
Version iterator is set to 20 by default so users can easily put in
iterators before and after it without having to change the versioning as
well.
On Thu, Feb 20, 2014 at 3:18 PM, Aaron <aa...@gmail.com> wrote:
> I assume this is correct..but, just double checking.
>
> From the JavaDocs:
>
> *priority - determines the order in which iterators are applied (system
> iterators are always applied first, then user-configured iterators, lowest
> priority first)*
>
> So, even if I set a priority of "1" for a user iterator, it will (should?)
> come after all system iterators have run on a particular
> scan/min/majc..correct?
>
> I noticed that the VersionIterator looks to set a priority of 20 by
> default..is there a particular reason as to why it's set there? Just more
> curious than anything.
>
> Cheers,
> Aaron
>