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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
base declaration seenvoid
finish()
Finish processingabstract Collection<T>
void
prefix declaration seenvoid
Quad emittedvoid
start()
Start processingvoid
triple
(org.apache.jena.graph.Triple triple) Triple emitted
-
Constructor Details
-
CollectorStreamBase
public CollectorStreamBase()
-
-
Method Details
-
finish
public void finish()Description copied from interface:StreamRDF
Finish processing -
triple
public void triple(org.apache.jena.graph.Triple triple) Description copied from interface:StreamRDF
Triple emitted -
quad
Description copied from interface:StreamRDF
Quad emitted -
start
public void start()Description copied from interface:StreamRDF
Start processing -
base
Description copied from interface:StreamRDF
base declaration seen -
prefix
Description copied from interface:StreamRDF
prefix declaration seen -
getPrefixes
-
getBaseIri
-
getCollected
- Returns:
- The collection received by this instance.
-