Module org.apache.jena.querybuilder
Class CollectionQuadHolder
java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.CollectionQuadHolder
- All Implemented Interfaces:
QuadHolder
An QuadHolder that creates quads from a collection or iterator of triples.
-
Constructor Summary
ConstructorDescriptionCollectionQuadHolder
(Collection<org.apache.jena.graph.Triple> triples) Constructor.CollectionQuadHolder
(Iterator<org.apache.jena.graph.Triple> triples) Constructor.CollectionQuadHolder
(org.apache.jena.graph.Node graph, Collection<org.apache.jena.graph.Triple> triples) Constructor.CollectionQuadHolder
(org.apache.jena.graph.Node graph, Iterator<org.apache.jena.graph.Triple> triples) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.sparql.core.Quad>
getQuads()
Get an extended iterator over the quads this holder holds.This implementation does nothing.
-
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 triplestriples
- 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 triplestriples
- the iterator of triples.
-
CollectionQuadHolder
Constructor. Uses Quad.defaultGraphNodeGenerated for the graph name.- Parameters:
triples
- the collection of triples.- See Also:
-
Quad.defaultGraphNodeGenerated
-
CollectionQuadHolder
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 interfaceQuadHolder
- Returns:
- the extended iterator.
-
setValues
This implementation does nothing.- Specified by:
setValues
in interfaceQuadHolder
- Parameters:
values
- the values to set.- Returns:
- a QuadHolder in which the variables have been replaced.
-