Package lupos.distributed.operator.format

Examples of lupos.distributed.operator.format.SubgraphContainerFormatter.serialize()


      @Override
      public QueryResult call() throws Exception {
        //Get the processing result asynchron
        final SubgraphContainerFormatter serializer = new SubgraphContainerFormatter();
        try {
          final JSONObject serializedGraph = serializer
              .serialize(AsynchronSubgraphContainer.this
                  .getRootOfSubgraph(), 0);
          final QueryResult result = AsynchronSubgraphContainer.this.subgraphExecutor
              .evaluate(AsynchronSubgraphContainer.this.getKey(),
                  serializedGraph.toString(),bindingsFactory);
View Full Code Here


   */
  @Override
  public QueryResult process(final Dataset dataset) {
    final SubgraphContainerFormatter serializer = new SubgraphContainerFormatter();
    try {
      final JSONObject serializedGraph = serializer.serialize(this.rootNodeOfSubGraph, 0);
      final QueryResult result = this.subgraphExecutor.evaluate(this.key,  serializedGraph.toString(),this.bindingsFactory);
      result.materialize(); // just for now read all from the stream sent by the endpoint, otherwise it may be blocked! (may be removed if each endpoint can work completely in parallel!)
      return result;
    } catch (final JSONException e) {
      System.err.println(e);
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.