Examples of addOptions()


Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    t.check("table", new String[] {"table.iterator.majc.someName=10,foo.bar", "table.iterator.majc.someName.opt.key=value",
        "table.iterator.scan.someName=10,foo.bar",});
   
    t.removeIterator("table", "someName", EnumSet.of(IteratorScope.scan));
    setting = new IteratorSetting(20, "otherName", "some.classname");
    setting.addOptions(Collections.singletonMap("key", "value"));
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.majc));
    setting = new IteratorSetting(20, "otherName", "some.classname");
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.scan));
    Map<String,EnumSet<IteratorScope>> two = t.listIterators("table");
    Assert.assertEquals(2, two.size());
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    if (tableScanIterators == null) {
      tableScanIterators = new ArrayList<IteratorSetting>();
      shellState.scanIteratorOptions.put(tableName, tableScanIterators);
    }
    IteratorSetting setting = new IteratorSetting(priority, name, classname);
    setting.addOptions(options);
   
    // initialize a scanner to ensure the new setting does not conflict with existing settings
    String user = shellState.getConnector().whoami();
    Authorizations auths = shellState.getConnector().securityOperations().getUserAuthorizations(user);
    Scanner scanner = shellState.getConnector().createScanner(tableName, auths);
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    if (tableScanIterators == null) {
      tableScanIterators = new ArrayList<IteratorSetting>();
      shellState.iteratorProfiles.put(profile, tableScanIterators);
    }
    final IteratorSetting setting = new IteratorSetting(priority, name, classname);
    setting.addOptions(options);

    Iterator<IteratorSetting> iter = tableScanIterators.iterator();
    while (iter.hasNext()) {
      if (iter.next().getName().equals(name)) {
        iter.remove();
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    check(t, "table", new String[] {"table.iterator.scan.someName=10,foo.bar",});
    t.removeIterator("table", "someName", EnumSet.of(IteratorScope.scan));
    check(t, "table", new String[] {});

    IteratorSetting setting = new IteratorSetting(10, "someName", "foo.bar");
    setting.addOptions(Collections.singletonMap("key", "value"));
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.majc));
    setting = new IteratorSetting(10, "someName", "foo.bar");
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.scan));
    check(t, "table", new String[] {"table.iterator.majc.someName=10,foo.bar", "table.iterator.majc.someName.opt.key=value",
        "table.iterator.scan.someName=10,foo.bar",});
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    check(t, "table", new String[] {"table.iterator.majc.someName=10,foo.bar", "table.iterator.majc.someName.opt.key=value",
        "table.iterator.scan.someName=10,foo.bar",});

    t.removeIterator("table", "someName", EnumSet.of(IteratorScope.scan));
    setting = new IteratorSetting(20, "otherName", "some.classname");
    setting.addOptions(Collections.singletonMap("key", "value"));
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.majc));
    setting = new IteratorSetting(20, "otherName", "some.classname");
    t.attachIterator("table", setting, EnumSet.of(IteratorScope.scan));
    Map<String,EnumSet<IteratorScope>> two = t.listIterators("table");
    Assert.assertEquals(2, two.size());
View Full Code Here

Examples of org.apache.accumulo.core.client.IteratorSetting.addOptions()

    ArrayList<IteratorSetting> ret = new ArrayList<IteratorSetting>();

    for (IterInfo ii : tac.getSsiList()) {
      IteratorSetting settings = new IteratorSetting(ii.getPriority(), ii.getIterName(), ii.getClassName());
      Map<String,String> options = tac.getSsio().get(ii.getIterName());
      settings.addOptions(options);

      ret.add(settings);
    }

    return ret;
View Full Code Here

Examples of org.apache.commons.betwixt.Options.addOptions()

               
                // Construct the options
                Options combinedOptions = new Options();

                // Add options defined by the current bean's element descriptor
                combinedOptions.addOptions(elementDescriptor.getOptions());
               
                // The parent descriptor may have defined options
                // for the current bean.  These options take precedence
                // over the options of the current class descriptor
                if( context.getOptions() != null) {
View Full Code Here

Examples of org.apache.commons.betwixt.Options.addOptions()

               
                // The parent descriptor may have defined options
                // for the current bean.  These options take precedence
                // over the options of the current class descriptor
                if( context.getOptions() != null) {
                    combinedOptions.addOptions(context.getOptions());
                }
                context = context.newContext( bean );
                context.pushOptions(combinedOptions);
               
                if ( qualifiedName == null ) {
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util.addOptions()

        //Collection sessions = sctx.getScriptSessionsByPage("/ind.jsp"); 
        Collection sessions = sctx.getScriptSessionsByPage("/fly-web/ind.jsp")
        Util util = new Util(sessions)
        //������Щҳ���е�һЩԪ�� 
        util.removeAllOptions("users")
        util.addOptions("users", users, "username")
        util.removeAllOptions("receiver")
        util.addOptions("receiver", users,"userid","username");
        //������������¼      
        util.addOptions("ms", ms,"msid","hahah");
       
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util.addOptions()

        Util util = new Util(sessions)
        //������Щҳ���е�һЩԪ�� 
        util.removeAllOptions("users")
        util.addOptions("users", users, "username")
        util.removeAllOptions("receiver")
        util.addOptions("receiver", users,"userid","username");
        //������������¼      
        util.addOptions("ms", ms,"msid","hahah");
       
        if(!flag){ 
            return null
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.