Package org.openrdf.query.impl

Examples of org.openrdf.query.impl.ListBindingSet


          Namespace ns = iter.next();

          Literal prefix = new LiteralImpl(ns.getPrefix());
          Literal namespace = new LiteralImpl(ns.getName());

          BindingSet bindingSet = new ListBindingSet(columnNames, prefix, namespace);
          namespaces.add(bindingSet);
        }
      }
      finally {
        iter.close();
View Full Code Here


    ValueFactory vf = ValueFactoryImpl.getInstance();

    for (String connectionID : getRepository().getConnectionIDs()) {
      Literal idLit = vf.createLiteral(connectionID);
      result.append(new ListBindingSet(bindingNames, idLit));
    }

    return result;
  }
View Full Code Here

    try {
      List<String> columnNames = Arrays.asList("id");
      List<BindingSet> ids = new ArrayList<BindingSet>();

      for (String id : getRepositoryManager().getConfigTemplateManager().getIDs()) {
        ids.add(new ListBindingSet(columnNames, new LiteralImpl(id)));
      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
View Full Code Here

    List<String> columns = Arrays.asList(Protocol.BNODE);
    List<BindingSet> bnodes = new ArrayList<BindingSet>(amount);
    for (int i = 0; i < amount; i++) {
      BNode bnode = createBNode(vf, nodeID, i);
      bnodes.add(new ListBindingSet(columns, bnode));
    }

    return new TupleResultImpl(columns, bnodes);
  }
View Full Code Here

      ContextResult iter = getConnection().getContextIDs();

      try {
        while (iter.hasNext()) {
          contexts.add(new ListBindingSet(columnNames, iter.next()));
        }
      }
      finally {
        iter.close();
      }
View Full Code Here

      for (String bindingName : this.bindingNames) {
        writeString(bindingName);
      }

      List<Value> nullTuple = Collections.nCopies(this.bindingNames.size(), (Value)null);
      previousBindings = new ListBindingSet(this.bindingNames, nullTuple);
      nextNamespaceID = 0;
    }
    catch (IOException e) {
      throw new TupleQueryResultHandlerException(e);
    }
View Full Code Here

        if (currentTuple.size() == columnCount) {
          previousTuple = Collections.unmodifiableList(currentTuple);
          currentTuple = new ArrayList<Value>(columnCount);

          handler.handleSolution(new ListBindingSet(columnHeaders, previousTuple));
        }
      }

      recordTypeMarker = this.in.readByte();
    }
View Full Code Here

    try {
      CloseableIteration<? extends Resource, RepositoryException> contextIter = repositoryCon.getContextIDs();

      try {
        while (contextIter.hasNext()) {
          BindingSet bindingSet = new ListBindingSet(columnNames, contextIter.next());
          contexts.add(bindingSet);
        }
      }
      finally {
        contextIter.close();
View Full Code Here

          Namespace ns = iter.next();

          Literal prefix = new LiteralImpl(ns.getPrefix());
          Literal namespace = new LiteralImpl(ns.getName());

          BindingSet bindingSet = new ListBindingSet(columnNames, prefix, namespace);
          namespaces.add(bindingSet);
        }
      }
      finally {
        iter.close();
View Full Code Here

TOP

Related Classes of org.openrdf.query.impl.ListBindingSet

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.