public class DelegatingStatementSource extends Object implements StatementSource
Implementation of a StatementSource which can be used as the base for StatementSource
decorator implementations.
NO_ESTIMATE| Constructor and Description |
|---|
DelegatingStatementSource(StatementSource theSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.openrdf.model.Resource |
getContext()
Return the context these statements belong to.
|
protected StatementSource |
getSource() |
StatementIterator |
statements()
Return an iterator over the statements contained by this source.
|
List<RDFStream> |
streams()
Converts the statement source into one or more streams.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimatedCountpublic DelegatingStatementSource(StatementSource theSource)
protected StatementSource getSource()
public 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 StatementSourcepublic List<RDFStream> streams()
streams in interface StatementSourcepublic org.openrdf.model.Resource getContext()
getContext in interface StatementSourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.