Package org.openrdf.sail.federation.evaluation

Examples of org.openrdf.sail.federation.evaluation.FederationStatistics$Calculator


      {IsLocalProxyFactoryInterceptor.singleton, new NotToBeInvokedInterceptor()};
      PojiProxy handler = new PojiProxy(KEY, null, interceptors);
      Class<?>[] interfaces = new Class<?>[]
      {Calculator.class};
      // create the proxy
      Calculator calculator = (Calculator) Proxy.newProxyInstance(interfaces[0].getClassLoader(), interfaces, handler);
      // register with dispatcher too, since the IsLocalProxyFactoryInterceptor
      // looks for the key in the dispatcher
      Dispatcher.singleton.registerTarget(KEY, new CalculatorImpl());

      try
      {
         int result = calculator.add(1, 2);
         logger.info("Successfully invoked method. Result = " + result);
         Assert.assertEquals("Incorrect result from calculator", result, 3);
      }
      catch (IllegalInvocationException iie)
      {
View Full Code Here


    new ConjunctiveConstraintSplitter().optimize(query, bindings);
    new DisjunctiveConstraintOptimizer().optimize(query, bindings);
    new SameTermFilterOptimizer().optimize(query, bindings);
    new QueryModelPruner().optimize(query, bindings);

    FederationStatistics statistics = new FederationStatistics(federation.getExecutor(), members, query);
//    new QueryJoinOptimizer(statistics).optimize(query, bindings);
//    new FilterOptimizer().optimize(query, bindings);

    new EmptyPatternOptimizer(members).optimize(query, bindings);
    boolean distinct = federation.isDistinct();
    PrefixHashSet local = federation.getLocalPropertySpace();
    new FederationJoinOptimizer(members, distinct, local).optimize(query, bindings);
    new OwnedTupleExprPruner().optimize(query, bindings);
    new QueryModelPruner().optimize(query, bindings);
    new QueryJoinOptimizer(statistics).optimize(query, bindings);
    new FederationFilterOptimizer().optimize(query, bindings);
    statistics.await(); // let statistics throw any exceptions it has

    new PrepareOwnedTupleExpr(federation.getMetaData()).optimize(query, bindings);

    logger.trace("Optimized query model:\n{}", query);
    return query;
View Full Code Here

TOP

Related Classes of org.openrdf.sail.federation.evaluation.FederationStatistics$Calculator

Copyright © 2018 www.massapicom. 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.