java.lang.Object
org.apache.jena.riot.lang.CollectorStreamRDF
- All Implemented Interfaces:
StreamRDF
StreamRDF implementations which stores received triples and quads
in a
Collection
.
The resulting collection can be retrieved via the
getTriples()
and getQuads()
methods.
The 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 for a push-pull parser setup is significant.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CollectorStreamRDF
public CollectorStreamRDF()
-
-
Method Details
-
start
public void start()Description copied from interface:StreamRDF
Start processing -
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 -
base
Description copied from interface:StreamRDF
base declaration seen -
prefix
Description copied from interface:StreamRDF
prefix declaration seen -
getPrefixes
-
getBaseIri
-
getTriples
-
getQuads
-