You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Michael Berman (JIRA)" <ji...@apache.org> on 2013/02/04 21:48:13 UTC

[jira] [Created] (ACCUMULO-1038) Code snippet for constructing iterators has wrong argument order

Michael Berman created ACCUMULO-1038:
----------------------------------------

             Summary: Code snippet for constructing iterators has wrong argument order
                 Key: ACCUMULO-1038
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1038
             Project: Accumulo
          Issue Type: Bug
          Components: docs
    Affects Versions: 1.4.2
            Reporter: Michael Berman
            Assignee: David Medinets
            Priority: Critical


On the "Table Configuration" doc page, in the section "Setting Iterators Programatically" (at http://accumulo.apache.org/1.4/user_manual/Table_Configuration.html#Iterators), there is the following code snippet:

{code}
scanner.addIterator(new IteratorSetting(
    15, // priority
    "com.company.MyIterator", // class name
    "myiter" // name this iterator
));
{code}

The actual constructor signature for IteratorSetting is (priority, name, iteratorClass).  The second and third arguments should be flipped.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira