Examples of options()


Examples of org.apache.drill.common.logical.PlanProperties.PlanPropertiesBuilder.options()

  protected PhysicalPlan convertToPlan(PhysicalOperator op) {
    PlanPropertiesBuilder propsBuilder = PlanProperties.builder();
    propsBuilder.type(PlanType.APACHE_DRILL_PHYSICAL);
    propsBuilder.version(1);
    propsBuilder.options(new JSONOptions(context.getOptions().getSessionOptionList()));
    propsBuilder.resultMode(ResultMode.EXEC);
    propsBuilder.generator(this.getClass().getSimpleName(), "");
    return new PhysicalPlan(propsBuilder.build(), getPops(op));
  }
View Full Code Here

Examples of org.apache.provisionr.api.provider.ProviderBuilder.options()

    }

    private Provider newProviderMockWithBuilder() {
        Provider provider = mock(Provider.class);
        ProviderBuilder providerBuilder = mock(ProviderBuilder.class);
        when(providerBuilder.options(anyMapOf(String.class, String.class))).thenReturn(providerBuilder);
        when(providerBuilder.createProvider()).thenReturn(provider);
        when(provider.toBuilder()).thenReturn(providerBuilder);
        return provider;
    }
View Full Code Here

Examples of org.bukkit.configuration.MemoryConfiguration.options()

     * @return
     */
    public static MemoryConfiguration getWorldsDefaultConfig(final ConfigFile defaultConfig){
      final char sep = defaultConfig.options().pathSeparator();
      final MemoryConfiguration config = new ConfigFile();
      config.options().pathSeparator(sep);
      final Map<String, Object> defaults = defaultConfig.getValues(false);
      for (final Entry<String, Object> entry : defaults.entrySet()){
        final String part = entry.getKey();
        if (!part.isEmpty() && !mayBeInWorldConfig(part)) continue;
        final Object value = entry.getValue();
View Full Code Here

Examples of org.bukkit.configuration.file.FileConfiguration.options()

  for (File file : directory.listFiles()) {
   String filename = file.getName();
   if (filename.endsWith(".yml")) {
    String sectionName = filename.replaceAll("\\.yml$", "");
    FileConfiguration sectionConfig = new YamlConfiguration();
    sectionConfig.options().pathSeparator(this.options().pathSeparator());
    sectionConfig.load(file);
    this.putSection(sectionName, sectionConfig);
   }
  }
}
View Full Code Here

Examples of org.bukkit.configuration.file.YamlConfiguration.options()

        header.append("  It also allows admins to set the maximum number of jobs a player can have at");
        header.append(System.getProperty("line.separator"));
        header.append("any one time.");
        header.append(System.getProperty("line.separator"));
       
        config.options().copyDefaults(true);
       
        writer.options().header(header.toString());
       
        writer.addComment("locale-language", "Default language.  Use your languages two digit ISO 639-1 code, and optionally followed by the ISO-3166-1 country code.",
                "Example: en, en_US");
View Full Code Here

Examples of org.gradle.api.internal.tasks.CommandLineOption.options()

            if (tasks.size() == 1) {
                for (Class<?> type = tasks.iterator().next().getClass(); type != Object.class; type = type.getSuperclass()) {
                    for (Method method : type.getDeclaredMethods()) {
                        CommandLineOption commandLineOption = method.getAnnotation(CommandLineOption.class);
                        if (commandLineOption != null) {
                            commandLineParser.option(commandLineOption.options()).hasDescription(commandLineOption.description());
                            options.put(commandLineOption.options()[0], new JavaMethod<Task, Object>(Task.class, Object.class, method));
                        }
                    }
                }
            }
View Full Code Here

Examples of org.gradle.api.internal.tasks.CommandLineOption.options()

                for (Class<?> type = tasks.iterator().next().getClass(); type != Object.class; type = type.getSuperclass()) {
                    for (Method method : type.getDeclaredMethods()) {
                        CommandLineOption commandLineOption = method.getAnnotation(CommandLineOption.class);
                        if (commandLineOption != null) {
                            commandLineParser.option(commandLineOption.options()).hasDescription(commandLineOption.description());
                            options.put(commandLineOption.options()[0], new JavaMethod<Task, Object>(Task.class, Object.class, method));
                        }
                    }
                }
            }
View Full Code Here

Examples of org.jboss.managed.api.annotation.Masked.options()

      String maskedKey = Masked.class.getName();
      log.info(masked1.getAnnotations().keySet());
      assertTrue(masked1.hasAnnotation(maskedKey));
      Masked masked1Ann = (Masked) masked1.getAnnotations().get(maskedKey);
      assertNotNull(masked1Ann);
      String[] masked1Opts = masked1Ann.options();
      assertEquals(2, masked1Opts.length);
      assertEquals("hashAlgorithm", masked1Opts[0]);
      assertEquals("MD5", masked1Opts[1]);
     
      ManagedProperty masked2 = managedObject.getProperty("masked2");
View Full Code Here

Examples of org.jboss.resteasy.client.ClientRequest.options()

   @Test
   public void testOptions() throws Exception
   {
      ClientRequest request = new ClientRequest(TestPortProvider.generateURL("/params/customers/333/phonenumbers"));
      ClientResponse response = request.options();
      Assert.assertEquals(200, response.getStatus());

   }

   @Test
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.options()

      if (!statements.isEmpty()) {
          options.runScript(new StatementList(statements));
      }

      try {
         metadatas = service.createNodesInGroup(group, number, builder.options(options).build());
      } catch (RunNodesException ex) {
         System.out.println("Failed to create nodes:" + ex.getMessage());
      }

     if (metadatas != null && !metadatas.isEmpty()) {
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.