You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2013/01/29 11:39:33 UTC

svn commit: r1439822 - /jena/site/trunk/content/documentation/io/index.mdtext

Author: rvesse
Date: Tue Jan 29 10:39:32 2013
New Revision: 1439822

URL: http://svn.apache.org/viewvc?rev=1439822&view=rev
Log:
Updated staged documentation to refer to PipedRDFStream and PipedRDFIterator instead of the defunct StreamedRDFIterator

Modified:
    jena/site/trunk/content/documentation/io/index.mdtext

Modified: jena/site/trunk/content/documentation/io/index.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/io/index.mdtext?rev=1439822&r1=1439821&r2=1439822&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/io/index.mdtext (original)
+++ jena/site/trunk/content/documentation/io/index.mdtext Tue Jan 29 10:39:32 2013
@@ -268,14 +268,15 @@ One of the capabilities of the RIOT API 
 this is useful when you don't want to go to the trouble of writing a full sink implementation and can easily express your
 logic in normal iterator style.
 
-To do this you use one of the subclasses of [StreamedRDFIterator](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/StreamedRDFIterator.java?view=markup)
-which is an abstract class that implements the [RDFParserOutputIterator](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/RDFParserOutputIterator.java?view=markup) interface.
-This interface provides an implementation of StreamRDF which allows it to consume parser output and an implementation
-of a standard Java iterator allowing it to provide output in the normal iterator paradigm.  This has some advantages
-over a direct StreamRDF implementation since it allows the parser production of data to run
-ahead of your consumption of data which may result in better overall throughput.
+To do this you use one of the subclasses of 
+[PipedRDFIterator](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup)
+in conjunction with a [PipedRDFStream](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup).
+
+This `PipedRDFStream` provides an implementation of `StreamRDF` which allows it to consume parser output and this is consumed by
+the `PipedRDFIterator` implementation.  This has some advantages over a direct `StreamRDF` implementation since it allows the parser 
+production of data to run ahead of your consumption of data which may result in better overall throughput.
 
-The only complication is that you need to ensure that the parser and the consumer of the iterator are on different threads
+The only complication is that you need to ensure that the thread feeding the `PipedRDFStream` and the consumer of the iterator are on different threads
 as otherwise you can run into a deadlock situation where one is waiting on data from the other which is never started.
 
 See [RIOT example 6](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java)