Examples of prepare()


Examples of org.mindswap.pellet.jena.PelletInfGraph.prepare()

        throw new UnsupportedQueryException( "Named graphs is not supported by Pellet" );

      PelletInfGraph pelletInfGraph = (PelletInfGraph) source.getDefaultModel().getGraph();
      KnowledgeBase kb = pelletInfGraph.getKB();

      pelletInfGraph.prepare();

      QueryParameters queryParameters = new QueryParameters( initialBinding );

      ARQParser parser = new ARQParser( handleVariableSPO );
      // The parser uses the query parameterization to resolve parameters
View Full Code Here

Examples of org.neo4j.smack.pipeline.core.WorkTransactionPreparer.prepare()

        TransactionWork txWork = mock(TransactionWork.class);
       
        when(txWork.getTransactionId()).thenReturn(-1l);
        when(txWork.isTransactional()).thenReturn(false);
       
        prepper.prepare(txWork);
       
        verify(txWork).setTransactionMode(WorkTransactionMode.NO_TRANSACTION);
       
        // TODO: Is it necessary that it generates a tx id for non-transactional work?
        verify(txWork).setTransactionId(0l);
View Full Code Here

Examples of org.olap4cloud.impl.CubeScan.prepare()

      scan.getCubeScanAggregates().add(getCubeScanAggregate(aggregate, cubeDescriptor));
    int groupBy[] = new int[query.getGroupBy().size()];
    for(int i = 0; i < groupBy.length; i ++)
      groupBy[i] = getDimensionNumber(query.getGroupBy().get(i), cubeDescriptor);
    scan.setGroupBy(groupBy);
    scan.prepare();
    return scan;
  }

  private CubeScanAggregate getCubeScanAggregate(CubeQueryAggregate aggregate, CubeDescriptor cubeDescriptor)
    throws OLAPEngineException {
View Full Code Here

Examples of org.olat.core.gui.media.RedirectMediaResource.prepare()

        DispatcherAction.redirectToDefaultDispatcher(resp); // error, redirect to login screen
        return;
      }
     
      RedirectMediaResource rmr = (RedirectMediaResource)mr;
      rmr.prepare(resp);
    } else { // send bad request
      DispatcherAction.sendBadRequest(uri, resp);
    }
  }
 
View Full Code Here

Examples of org.omg.CosTransactions.Resource.prepare()

            }
        } else {
            for (int i = 0;i < resources.size();i++){
                Resource r = (Resource)resources.elementAt(i);
                try {
                    Vote v = r.prepare();
                    votes.setElementAt(v, i);
                    if (v.value() == Vote._VoteRollback){

                        rollback();
                        throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK();
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare()

    taskRegistrar.initialize(commandLineParser.getPlugins());
   
    pipeline = new Pipeline(taskRegistrar.getFactoryRegister());
   
    LOG.info("Preparing pipeline.");
    pipeline.prepare(commandLineParser.getTaskInfoList());
   
    LOG.info("Launching pipeline execution.");
    pipeline.execute();
   
    LOG.info("Pipeline executing, waiting for completion.");
View Full Code Here

Examples of org.osgi.service.deploymentadmin.spi.ResourceProcessor.prepare()

    protected void doExecute(DeploymentSessionImpl session) throws Exception {
        for (ListIterator i = m_processors.listIterator(m_processors.size()); i.hasPrevious();) {
            ResourceProcessor processor = (ResourceProcessor) i.previous();
            try {
                processor.prepare();
            }
            catch (ResourceProcessorException e) {
                session.getLog().log(LogService.LOG_ERROR, "Preparing commit for resource processor failed", e);
                // Check what error code we got...
                if (e.getCode() == ResourceProcessorException.CODE_PREPARE) {
View Full Code Here

Examples of org.pdf4j.saxon.number.NumberFormatter.prepare()

        }

        NumberFormatter nf;
        if (formatter == null) {              // format not known until run-time
            nf = new NumberFormatter();
            nf.prepare(format.evaluateAsString(context).toString());
        } else {
            nf = formatter;
        }

        CharSequence s = nf.format(vec, gpsize, gpseparator, letterVal, ordinalVal, numb);
View Full Code Here

Examples of org.rascalmpl.test.infrastructure.TestFramework.prepare()

  }
 
  @Test @Ignore
  public void testStrategySeperately(){
    TestFramework tf = new TestFramework();
    tf.prepare("import StrategyTests;");
    tf.prepareMore("import Strategy;");
    tf.prepareMore("A t = f(g(g(b())),g(g(b())));");
    assertTrue(tf.runTestInSameEvaluator("top_down(rules)(t) == f(g(b()),g(b()))"));
    tf = new TestFramework();
    tf.prepare("import StrategyTests;");
View Full Code Here

Examples of org.sonar.process.ProcessCommands.prepare()

  ProcessRef launch(JavaCommand command) {
    Process process = null;
    try {
      // cleanup existing monitor files
      ProcessCommands commands = new ProcessCommands(command.getTempDir(), command.getKey());
      commands.prepare();

      ProcessBuilder processBuilder = create(command);
      LoggerFactory.getLogger(getClass()).info("Launch process[{}]: {}",
        command.getKey(), StringUtils.join(processBuilder.command(), " "));
      process = processBuilder.start();
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.