accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Berman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-1038) Code snippet for constructing iterators has wrong argument order
Date Mon, 04 Feb 2013 20:48:13 GMT
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

Mime
View raw message