public class GraphDifferencingIterator extends com.google.common.collect.AbstractIterator<com.hp.hpl.jena.graph.Triple>
Iterator that calculates two differences between a
Graph A and a source Iterator B. The differences are (A - (A ∩ B)) and
(B - (A ∩ B)). The ordinary output of this iterator is (B - (A ∩ B)), and
after exhaustion, sets containing (A - (A ∩ B)) and (A ∩ B) are available.| Constructor and Description |
|---|
GraphDifferencingIterator(com.hp.hpl.jena.graph.Graph replacement,
Iterator<com.hp.hpl.jena.graph.Triple> original)
Diff a graph against a stream of triples
|
GraphDifferencingIterator(com.hp.hpl.jena.rdf.model.Model replacement,
Iterator<com.hp.hpl.jena.graph.Triple> original)
Diff a Model against a stream of triples
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<com.hp.hpl.jena.graph.Triple> |
common()
This method will return null until the source iterator is exhausted.
|
protected com.hp.hpl.jena.graph.Triple |
computeNext() |
Iterator<com.hp.hpl.jena.graph.Triple> |
notCommon()
This method will return null until the source iterator is exhausted.
|
public GraphDifferencingIterator(com.hp.hpl.jena.rdf.model.Model replacement, Iterator<com.hp.hpl.jena.graph.Triple> original)
replacement - original - public GraphDifferencingIterator(com.hp.hpl.jena.graph.Graph replacement, Iterator<com.hp.hpl.jena.graph.Triple> original)
replacement - original - protected com.hp.hpl.jena.graph.Triple computeNext()
computeNext in class com.google.common.collect.AbstractIterator<com.hp.hpl.jena.graph.Triple>public Iterator<com.hp.hpl.jena.graph.Triple> common()
Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.