T - Type of the value stored in the collectionpublic abstract class CollectorStreamBase<T> extends Object implements StreamRDF
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 and Description |
|---|
CollectorStreamBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
base(String base)
base declaration seen
|
void |
finish()
Finish processing
|
String |
getBaseIri() |
abstract Collection<T> |
getCollected() |
PrefixMap |
getPrefixes() |
void |
prefix(String prefix,
String iri)
prefix declaration seen
|
void |
quad(Quad quad)
Quad emitted
|
void |
start()
Start processing
|
void |
triple(Triple triple)
Triple emitted
|
public void finish()
StreamRDFpublic void triple(Triple triple)
StreamRDFpublic void start()
StreamRDFpublic void base(String base)
StreamRDFpublic void prefix(String prefix, String iri)
StreamRDFpublic PrefixMap getPrefixes()
public String getBaseIri()
public abstract Collection<T> getCollected()
Licenced under the Apache License, Version 2.0