Examples of Input


Examples of org.apache.lucene.search.suggest.Input

  public void testNonExactFirst() throws Exception {

    WFSTCompletionLookup suggester = new WFSTCompletionLookup(false);

    suggester.build(new InputArrayIterator(new Input[] {
          new Input("x y", 20),
          new Input("x", 2),
        }));

    for(int topN=1;topN<4;topN++) {
      List<LookupResult> results = suggester.lookup("x", false, topN);
View Full Code Here

Examples of org.apache.lucene.search.suggest.Input

        allPrefixes.add(s.substring(0, j));
      }
      // we can probably do Integer.MAX_VALUE here, but why worry.
      int weight = random().nextInt(1<<24);
      slowCompletor.put(s, (long)weight);
      keys[i] = new Input(s, weight);
    }

    WFSTCompletionLookup suggester = new WFSTCompletionLookup(false);
    suggester.build(new InputArrayIterator(keys));
View Full Code Here

Examples of org.apache.lucene.search.suggest.Input

    key1.length = 3;

    WFSTCompletionLookup suggester = new WFSTCompletionLookup(false);

    suggester.build(new InputArrayIterator(new Input[] {
          new Input(key1, 50),
          new Input(key2, 50),
        }));
  }
View Full Code Here

Examples of org.apache.struts2.jquery.components.Input

  @Override
    protected void populateParams() {
       
    super.populateParams();

    Input input = (Input) component;
    input.setFocusTopics(focusTopics);
    input.setBlurTopics(blurTopics);
    input.setReloadTopics(reloadTopics);
    input.setOnChangeTopics(onChangeTopics);
    input.setOnBlurTopics(onBlurTopics);
    input.setOnFocusTopics(onFocusTopics);
    input.setSrc(src);
    input.setElementIds(elementIds);
    input.setFormIds(formIds);
    }
View Full Code Here

Examples of org.apache.tez.runtime.api.Input

    long startTime = 0l;
    long readyTime = 0l;
    requestList = new ArrayList<Input>();
    requestList.add(input1);
    requestList.add(input2);
    Input readyInput = inputReadyTracker.waitForAnyInputReady(requestList);
    assertTrue(input1.isReady);
    assertFalse(input2.isReady);
    assertEquals(input1, readyInput);
   
    startTime = System.currentTimeMillis();
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Input

                }
            }

            // we must ask the user what version and status he want to have
            // for the dependency
            Input input = (Input) getProject().createTask("input");
            input.setOwningTarget(getOwningTarget());
            input.init();

            // ask status
            input.setMessage(depMrid.getName() + " " + depMrid.getRevision()
                    + ": please enter a status: ");
            input.setValidargs(StatusManager.getCurrent().getDeliveryStatusListString());
            input.setAddproperty(statusProperty);
            input.perform();
            status = getProject().getProperty(statusProperty);
            appendDeliveryList(statusProperty + " = " + status);

            // ask version
            input.setMessage(depMrid.getName() + " " + depMrid.getRevision()
                    + ": please enter a version: ");
            input.setValidargs(null);
            input.setAddproperty(versionProperty);
            input.perform();

            version = getProject().getProperty(versionProperty);
            appendDeliveryList(versionProperty + " = " + version);
            deliverDependency(depMrid, version, status, depStatus);
View Full Code Here

Examples of org.data2semantics.platform.core.data.Input

        instances.add(newInstance);
       
        return;
      }
     
      Input curInput = inputs().get(depth);
     
      // if curInput is already in the universe this means it was coupled with previous inputs.
      // first coupled input will immediately assign other related/coupled inputs.
      if(universe.containsKey(curInput)){
     
        instantiateInputRec(universe, depth+1);
     
      }
      else
      if(curInput instanceof RawInput){
       
        Map<Input, InstanceInput> nextUniverse = new LinkedHashMap<Input, InstanceInput>(universe);
        Object nextValue =  ((RawInput) curInput).value();
       
        nextUniverse.put(curInput, new InstanceInput(this, curInput, nextValue));
        instantiateInputRec(nextUniverse,  depth+1);
     
      } else
      if(curInput instanceof ReferenceInput){
       
        handleReferenceInput(universe,  depth, curInput, curInput);
     
      } else
      if(curInput instanceof MultiInput){
       
        List<? extends Input> curMultiInputs = ((MultiInput) curInput).inputs();
       
        for(int i =0;i < curMultiInputs.size();i++){
         
          Input curMultiInput = curMultiInputs.get(i);
         
          if(curMultiInput instanceof RawInput){
           
            handleMultiRawInput(universe, depth, (RawInput) curMultiInput, curInput, i);
           
View Full Code Here

Examples of org.eclipse.wst.wsdl.Input

    BindingInput bindingInput = bindingOperation.getEBindingInput();
    BindingOutput bindingOutput = bindingOperation.getEBindingOutput();
    List bindingFaults = bindingOperation.getEBindingFaults();

    Operation operation = bindingOperation.getEOperation();
    Input input = operation.getEInput();
    Output output = operation.getEOutput();
    List faults = operation.getEFaults();

    /******************************************************
     * Compare the Operation names
     ******************************************************/
    if (!namesEqual(bindingOperation.getName(), operation.getName()))
    {
      bindingOperation.setName(operation.getName());
    }

    /******************************************************
     * Compare the Output
     ******************************************************/
    if (output == null)
    {
      bindingOperation.setBindingOutput(null);
    }
    else
    {
      // Create BindingOutput if necessary
      if (bindingOutput == null)
      {
        BindingOutput newBindingOutput = factory.createBindingOutput();
        newBindingOutput.setEOutput(output);
        newBindingOutput.setName(output.getName());
        bindingOperation.setBindingOutput(newBindingOutput);
      }
      else
      {
        // Compare the Output names
        if (!namesEqual(bindingOutput.getName(), output.getName()))
        {
          bindingOutput.setName(output.getName());
        }
      }
    }
    generateBindingOutputContent(bindingOperation.getEBindingOutput());

    /******************************************************
     * Compare the Input
     ******************************************************/
    if (input == null)
    {
      bindingOperation.setBindingInput(null);
    }
    else
    {
      // Create BindingInput if necessary
      if (bindingInput == null)
      {
        BindingInput newBindingInput = factory.createBindingInput();
        newBindingInput.setEInput(input);
        newBindingInput.setName(input.getName());
        bindingOperation.setBindingInput(newBindingInput);
      }
      else
      {
        // Compare the Input names
        if (!namesEqual(bindingInput.getName(), input.getName()))
        {
          bindingInput.setName(input.getName());
        }
      }
    }
    generateBindingInputContent(bindingOperation.getEBindingInput());

View Full Code Here

Examples of org.encog.bot.browse.range.Input

  protected final void loadInput(final int index, final Tag tag) {
    final String type = tag.getAttributeValue("type");
    final String name = tag.getAttributeValue("name");
    final String value = tag.getAttributeValue("value");

    final Input input = new Input(this.page);
    input.setType(type);
    input.setName(name);
    input.setValue(value);

    if (this.lastForm != null) {
      this.lastForm.addElement(input);
    } else {
      this.page.addContent(input);
View Full Code Here

Examples of org.graylog2.inputs.Input

        inputData.put("creator_user_id", rir.creatorUserId);
        inputData.put("configuration", rir.configuration);
        inputData.put("created_at", Tools.iso8601());
        inputData.put("radio_id", rir.radioId);

        Input mongoInput = new InputImpl(inputData);

        // Write to database.
        String id;
        try {
            id = inputService.save(mongoInput);
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.