public interface StatementSource extends Closeable
Interface which represents a source of a set of RDF statements
. The actual
source of the statements can be an in-memory graph, a file on disk, a socket or network connection, etc.
Care should be taken to sure that all StatementSource objects are closed to free up any resources they are holding.
Modifier and Type | Field and Description |
---|---|
static long |
NO_ESTIMATE |
Modifier and Type | Method and Description |
---|---|
default boolean |
containsVirtual()
Returns true if the statement source represents, at least partially, the contents of a Virtual Graph
|
default long |
estimatedCount()
Returns the estimated count of statements in this source or
NO_ESTIMATE if the estimate is not known. |
Resource |
getContext()
Return the context these statements belong to.
|
default boolean |
inMemory()
Returns true if all statements are held in memory
|
StatementIterator |
statements()
Return an iterator over the statements contained by this source.
|
List<RDFStream> |
streams()
Converts the statement source into one or more streams.
|
static final long NO_ESTIMATE
StatementIterator statements()
Closing the iterator
, when applicable, does not clean
up the source, only the iterator. You must close the source separately.Resource getContext()
default long estimatedCount()
NO_ESTIMATE
if the estimate is not known.default boolean containsVirtual()
default boolean inMemory()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.