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.
CollectorStreamBase
public CollectorStreamBase()
finish
public void finish()
- Description copied from interface:
StreamRDF
- Finish parsing
- Specified by:
finish in interface StreamRDF
triple
public void triple(Triple triple)
- Description copied from interface:
StreamRDF
- Triple emitted
- Specified by:
triple in interface StreamRDF
tuple
public void tuple(Tuple<Node> tuple)
- Description copied from interface:
StreamRDF
- Generalized emitted
- Specified by:
tuple in interface StreamRDF
quad
public void quad(Quad quad)
- Description copied from interface:
StreamRDF
- Quad emitted
- Specified by:
quad in interface StreamRDF
start
public void start()
- Description copied from interface:
StreamRDF
- Start parsing
- Specified by:
start in interface StreamRDF
base
public void base(String base)
- Description copied from interface:
StreamRDF
- base declaration seen
- Specified by:
base in interface StreamRDF
prefix
public void prefix(String prefix,
String iri)
- Description copied from interface:
StreamRDF
- prefix declaration seen
- Specified by:
prefix in interface StreamRDF
getPrefixes
public PrefixMap getPrefixes()
getBaseIri
public String getBaseIri()
getCollected
public abstract Collection<T> getCollected()
- Returns:
- The collection received by this instance.
Licenced under the Apache License, Version 2.0