public class DescribeCacheUpdater extends Object implements info.aduna.iteration.CloseableIteration<BigdataStatement,org.openrdf.query.QueryEvaluationException>
RDFWriter interface and
adds/replaces the DESCRIBE of the Resource specified to the
constructor.| Constructor and Description |
|---|
DescribeCacheUpdater(IDescribeCache cache,
Set<BigdataValue> describedResources,
info.aduna.iteration.CloseableIteration<BigdataStatement,org.openrdf.query.QueryEvaluationException> src) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
BigdataStatement |
next()
TODO In order to support CBD, we will also have to recognize
statements that describe blank nodes that are part of the description
of a described resource as belonging to that described resource.
|
void |
remove() |
public DescribeCacheUpdater(IDescribeCache cache, Set<BigdataValue> describedResources, info.aduna.iteration.CloseableIteration<BigdataStatement,org.openrdf.query.QueryEvaluationException> src)
cache - The cache to be updated.describedResources - The BigdataValues that become bound for the projection
of the original DESCRIBE query. We will collect all statements
having a described resource as either a subject or an object.
This MUST be a thread-safe (and concurrency favorable) set in
order to ensure the visibility of the updates.src - The source iterator, visiting the statements that are the
description of the resource(s) identified in the
ProjectionNode.public boolean hasNext()
throws org.openrdf.query.QueryEvaluationException
hasNext in interface info.aduna.iteration.Iteration<BigdataStatement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionpublic BigdataStatement next() throws org.openrdf.query.QueryEvaluationException
next in interface info.aduna.iteration.Iteration<BigdataStatement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionpublic void close()
throws org.openrdf.query.QueryEvaluationException
close in interface info.aduna.iteration.CloseableIteration<BigdataStatement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionpublic void remove()
throws org.openrdf.query.QueryEvaluationException
remove in interface info.aduna.iteration.Iteration<BigdataStatement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.