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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbase declaration seenvoidfinish()Finish processinggetQuads()List<org.apache.jena.graph.Triple>voidprefix declaration seenvoidQuad emittedvoidstart()Start processingvoidtriple(org.apache.jena.graph.Triple triple) Triple emittedvoidversion declaration seen
-
Constructor Details
-
CollectorStreamRDF
public CollectorStreamRDF()
-
-
Method Details
-
start
public void start()Description copied from interface:StreamRDFStart processing -
finish
public void finish()Description copied from interface:StreamRDFFinish processing -
triple
public void triple(org.apache.jena.graph.Triple triple) Description copied from interface:StreamRDFTriple emitted -
quad
Description copied from interface:StreamRDFQuad emitted -
base
Description copied from interface:StreamRDFbase declaration seen -
version
Description copied from interface:StreamRDFversion declaration seen -
prefix
Description copied from interface:StreamRDFprefix declaration seen -
getPrefixes
-
getBaseIri
-
getTriples
-
getQuads
-