java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.CollectionQuadHolder
All Implemented Interfaces:
QuadHolder

public class CollectionQuadHolder extends Object implements QuadHolder
An QuadHolder that creates quads from a collection or iterator of triples.
  • Constructor Details

    • CollectionQuadHolder

      public CollectionQuadHolder(org.apache.jena.graph.Node graph, Collection<org.apache.jena.graph.Triple> triples)
      Constructor.
      Parameters:
      graph - the default graph name for the triples
      triples - the collection of triples.
    • CollectionQuadHolder

      public CollectionQuadHolder(org.apache.jena.graph.Node graph, Iterator<org.apache.jena.graph.Triple> triples)
      Constructor.
      Parameters:
      graph - the default graph name for the triples
      triples - the iterator of triples.
    • CollectionQuadHolder

      public CollectionQuadHolder(Collection<org.apache.jena.graph.Triple> triples)
      Constructor. Uses Quad.defaultGraphNodeGenerated for the graph name.
      Parameters:
      triples - the collection of triples.
      See Also:
      • Quad.defaultGraphNodeGenerated
    • CollectionQuadHolder

      public CollectionQuadHolder(Iterator<org.apache.jena.graph.Triple> triples)
      Constructor.
      Parameters:
      triples - the iterator of triples.
  • Method Details

    • getQuads

      public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.sparql.core.Quad> getQuads()
      Description copied from interface: QuadHolder
      Get an extended iterator over the quads this holder holds.
      Specified by:
      getQuads in interface QuadHolder
      Returns:
      the extended iterator.
    • setValues

      public QuadHolder setValues(Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> values)
      This implementation does nothing.
      Specified by:
      setValues in interface QuadHolder
      Parameters:
      values - the values to set.
      Returns:
      a QuadHolder in which the variables have been replaced.