Examples of preprocess()


Examples of org.elasticsearch.search.internal.DefaultSearchContext.preProcess()

        );
        SearchContext.setCurrent(context);

        try {
            context.parsedQuery(indexService.queryParserService().parseQuery(request.source()));
            context.preProcess();
            int topLevelDocId = result.docIdAndVersion().docId + result.docIdAndVersion().context.docBase;
            Explanation explanation = context.searcher().explain(context.query(), topLevelDocId);
            for (RescoreSearchContext ctx : context.rescore()) {
                Rescorer rescorer = ctx.rescorer();
                explanation = rescorer.explain(topLevelDocId, context, ctx, explanation);
View Full Code Here

Examples of org.elasticsearch.search.internal.SearchContext.preProcess()

        );
        SearchContext.setCurrent(context);

        try {
            context.parsedQuery(indexService.queryParserService().parseQuery(request.source()));
            context.preProcess();
            int topLevelDocId = result.docIdAndVersion().docId + result.docIdAndVersion().context.docBase;
            Explanation explanation = context.searcher().explain(context.query(), topLevelDocId);
            for (RescoreSearchContext ctx : context.rescore()) {
                Rescorer rescorer = ctx.rescorer();
                explanation = rescorer.explain(topLevelDocId, context, ctx, explanation);
View Full Code Here

Examples of org.jamesii.asf.spdm.generators.preprocess.IDMDataPreProcessor.preprocess()

      // Pre-process data
      @SuppressWarnings("rawtypes")
      IDMDataPreProcessor preProcessor =
          predGenFactory.createPreprocessor(predGenParameters);
      if (preProcessor != null) {
        inputData = preProcessor.preprocess(inputData);
      }
      if (inputData.isEmpty()) {
        continue;
      }
View Full Code Here

Examples of org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.preProcess()

      String type = MediaType.TEXT_XML;
      HttpRequest request = MockHttpRequest.get("foo?" + acceptParamName + "=" + type);

      MediaType mediaType = MediaType.valueOf(type);

      processor.preProcess(request);

      List<MediaType> list = request.getHttpHeaders().getAcceptableMediaTypes();

      Assert.assertEquals("Incorrect acceptable list size", 1, list.size());
      Assert.assertEquals("Incorrect media type extracted", mediaType, list.get(0));
View Full Code Here

Examples of org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.preProcess()

      HttpRequest request = MockHttpRequest.get("foo?" + acceptParamName + "=" + expected.get(0) + "," + expected.get(1));
      request.getHttpHeaders().getAcceptableMediaTypes().add(expected.get(2));
      request.getHttpHeaders().getAcceptableMediaTypes().add(expected.get(3));

      processor.preProcess(request);

      List<MediaType> actual = request.getHttpHeaders().getAcceptableMediaTypes();

      Assert.assertEquals("Incorrect acceptable media type extracted", expected, actual);
   }
View Full Code Here

Examples of org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.preProcess()

      HttpRequest request = MockHttpRequest.get("foo");
      request.getHttpHeaders().getAcceptableMediaTypes().add(expected.get(0));
      request.getHttpHeaders().getAcceptableMediaTypes().add(expected.get(1));

      processor.preProcess(request);

      List<MediaType> actual = request.getHttpHeaders().getAcceptableMediaTypes();

      Assert.assertEquals("Incorrect acceptable media type extracted", expected, actual);
   }
View Full Code Here

Examples of org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.preProcess()

      String param2 = URLEncoder.encode("text/html", "UTF-8");
      HttpRequest request = MockHttpRequest.get(
              "foo?" + acceptParamName + "=" + param1 + "&" +
                      acceptParamName + "=" + param2);

      processor.preProcess(request);

      List<MediaType> actual = request.getHttpHeaders().getAcceptableMediaTypes();

      Assert.assertEquals("Incorrect acceptable media type extracted", expected, actual);
   }
View Full Code Here

Examples of org.jbpm.designer.web.preprocessing.IDiagramPreprocessingUnit.preprocess()

            if (_logger.isInfoEnabled()) {
                _logger.info(
                        "Performing diagram information pre-processing steps. ");
            }
            preprocessingUnit = _preProcessingService.findPreprocessingUnit(request, profile);
            preprocessingUnit.preprocess(request, response, profile, getServletContext(), Boolean.parseBoolean(readOnly), ioService, descriptor);
        }

        //output env javascript files
        JSONArray scriptsArray;
        if (_devMode) {
View Full Code Here

Examples of org.jsmdr.preprocessor.PreProcessor.preprocess()

    PreProcessor processor = loader.getProcessor();
    SMDRParser parser = loader.getParser();
   
    String line = selection;
    if (processor != null)
      line = processor.preprocess(line);
     
    if (parser != null)
    {
      CDR cdr = parser.parse(line);
      tableModel.setCDR(cdr);
View Full Code Here

Examples of org.maltparserx.core.flow.FlowChartInstance.preprocess()

  }
 
  public void process(int optionContainerIndex) throws MaltChainedException {
    FlowChartInstance flowChartInstance = flowChartInstances.get(optionContainerIndex);
    if (flowChartInstance.hasPreProcessChartItems()) {
      flowChartInstance.preprocess();
    }
    if (flowChartInstance.hasProcessChartItems()) {
      int signal = ChartItem.CONTINUE;
      int tic = 0;
      int sentenceCounter = 0;
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.