java.lang.Object
org.apache.jena.riot.lang.CollectorStreamBase<T>
- Type Parameters:
T- Type of the value stored in the collection
- All Implemented Interfaces:
StreamRDF
- Direct Known Subclasses:
CollectorStreamQuads,CollectorStreamTriples
Base class for StreamRDF implementations which store received
<T>
objects in a Collection.
The resulting collection can be retrieved via the getCollected()
method.
Implementations are suitable for single-threaded parsing, for use with small
data or distributed computing frameworks (e.g. Hadoop) where the overhead
of creating many threads is significant.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbase declaration seenvoidfinish()Finish processingabstract Collection<T>voidprefix declaration seenvoidQuad emittedvoidstart()Start processingvoidTriple emitted
-
Constructor Details
-
CollectorStreamBase
public CollectorStreamBase()
-
-
Method Details
-
finish
public void finish()Description copied from interface:StreamRDFFinish processing -
triple
Description copied from interface:StreamRDFTriple emitted -
quad
Description copied from interface:StreamRDFQuad emitted -
start
public void start()Description copied from interface:StreamRDFStart processing -
base
Description copied from interface:StreamRDFbase declaration seen -
prefix
Description copied from interface:StreamRDFprefix declaration seen -
getPrefixes
-
getBaseIri
-
getCollected
- Returns:
- The collection received by this instance.
-