Register a listener that will be invoked when a new iterator is returned from match().
A listener.
The sources that are indexed in this store.
Mark this store as ended.
This will make sure that all running and future match
calls will end,
and all next import
calls to this store will throw an error.
If iterators created during the match
call are still running.
Returns a stream that processes all quads matching the pattern.
Optional
subject: null | TermThe optional subject.
Optional
predicate: null | TermThe optional predicate.
Optional
object: null | TermThe optional object.
Optional
graph: null | TermThe optional graph.
The resulting quad stream.
Remove the given iterator creation listener.
A listener.
Update the metadata of the base iterator, from which the aggregated store is being populated.
The metadata object.
If this aggregated has started processing.
Consumes the given stream.
The end
and error
events are used like described in the Stream interface.
Depending on the use case, subtypes of EventEmitter or Stream are used.
The stream that will be consumed.
The resulting event emitter.
A StreamingStore allows data lookup and insertion to happen in parallel. Concretely, this means that
match()
calls happening beforeimport()
calls, will still consider those triples that are inserted later, which is done by keeping the response streams ofmatch()
open. Only when theend()
method is invoked, all response streams will close, and the StreamingStore will be considered immutable.WARNING:
end()
MUST be called at some point, otherwise allmatch
streams will remain unended.