| A RepositoryResult is a result collection of objects (for example
org.openrdf.model.Statement ,
org.openrdf.model.Namespace ,
or
org.openrdf.model.Resource objects) that can be iterated over. It
keeps an open connection to the backend for lazy retrieval of individual
results. Additionally it has some utility methods to fetch all results and
add them to a collection.
By default, a RepositoryResult is not necessarily a (mathematical) set: it
may contain duplicate objects. Duplicate filtering can be {
RepositoryResult.enableDuplicateFilter() switched on ,
but this should not be used lightly as the filtering mechanism is potentially
memory-intensive.
A RepositoryResult needs to be
RepositoryResult.close() closed after use to free up
any resources (open connections, read locks, etc.) it has on the underlying
repository.
See Also: RepositoryConnection.getStatements(org.openrdf.model.Resourceorg.openrdf.model.URIorg.openrdf.model.Valuebooleanorg.openrdf.model.Resource[]) See Also: RepositoryConnection.getNamespaces See Also: RepositoryConnection.getContextIDs author: jeen author: Arjohn Kampman |