Package com.complexible.common.rdf
Class ContextOverrideStatementSource
java.lang.Object
com.complexible.common.rdf.DelegatingStatementSource
com.complexible.common.rdf.ContextOverrideStatementSource
- All Implemented Interfaces:
StatementSource,Closeable,AutoCloseable
StatementSource decorator which will override the context of the underlying source.
- Since:
- 0.8
- Version:
- 6.0
- Author:
- Michael Grove
-
Field Summary
Fields inherited from interface com.complexible.common.rdf.StatementSource
NO_ESTIMATE -
Method Summary
Modifier and TypeMethodDescriptionReturn the context these statements belong to.Return an iterator over the statements contained by this source.streams()Converts the statement source into one or more streams.Methods inherited from class com.complexible.common.rdf.DelegatingStatementSource
close, containsVirtual, estimatedCount, getSource, inMemory
-
Method Details
-
getContext
Return the context these statements belong to. When non-null, this should override the context specified on the statements themselves.- Specified by:
getContextin interfaceStatementSource- Overrides:
getContextin classDelegatingStatementSource- Returns:
- the context of all the statements from this source, or `null` if there is no context (for all of them) or they each have their own context specified.
-
statements
Return an iterator over the statements contained by this source.- Specified by:
statementsin interfaceStatementSource- Overrides:
statementsin classDelegatingStatementSource- Returns:
- an iteration over the statements.
-
streams
Description copied from class:DelegatingStatementSourceConverts the statement source into one or more streams.- Specified by:
streamsin interfaceStatementSource- Overrides:
streamsin classDelegatingStatementSource
-