public class ContextFallbackStatementSource extends DelegatingStatementSource
StatementSource decorator which will provide a context for statements that don't have a context. Contexts that already have a context will be unchanged.
NO_ESTIMATE| Constructor and Description |
|---|
ContextFallbackStatementSource(StatementSource theStatementSource,
org.openrdf.model.Resource theContext) |
| Modifier and Type | Method and Description |
|---|---|
StatementIterator |
statements()
Return an iterator over the statements contained by this source.
|
List<RDFStream> |
streams()
Converts the statement source into one or more streams.
|
close, getContext, getSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimatedCountpublic ContextFallbackStatementSource(StatementSource theStatementSource, org.openrdf.model.Resource theContext)
public List<RDFStream> streams()
streams in interface StatementSourcestreams in class DelegatingStatementSourcepublic StatementIterator statements()
Closing the iterator, when applicable, does not clean
up the source, only the iterator. You must close the source separately.
Implementations must ensure that this method can be called more than once and the resulting iterators can be used independently.statements in interface StatementSourcestatements in class DelegatingStatementSourceCopyright © 2010-2016 Stardog Union. All Rights Reserved.