public class BackgroundGraphResult extends IterationWrapper<Statement,QueryEvaluationException> implements GraphQueryResult, Runnable, RDFHandler
wrappedIter| Constructor and Description | 
|---|
| BackgroundGraphResult(QueueCursor<Statement> queue,
                     RDFParser parser,
                     InputStream in,
                     Charset charset,
                     String baseURI) | 
| BackgroundGraphResult(RDFParser parser,
                     InputStream in,
                     Charset charset,
                     String baseURI) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | endRDF()Signals the end of the RDF data. | 
| Map<String,String> | getNamespaces()Retrieves relevant namespaces from the query result. | 
| protected void | handleClose()Closes this Iteration and also closes the wrapped Iteration if it is a  CloseableIteration. | 
| void | handleComment(String comment)Handles a comment. | 
| void | handleNamespace(String prefix,
               String uri)Handles a namespace declaration/definition. | 
| void | handleStatement(Statement st)Handles a statement. | 
| void | run() | 
| void | startRDF()Signals the start of the RDF data. | 
hasNext, next, removeclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratorclosehasNext, next, remove, streamforEach, spliteratorpublic BackgroundGraphResult(RDFParser parser, InputStream in, Charset charset, String baseURI)
public BackgroundGraphResult(QueueCursor<Statement> queue, RDFParser parser, InputStream in, Charset charset, String baseURI)
protected void handleClose()
                    throws QueryEvaluationException
IterationWrapperCloseableIteration.handleClose in class IterationWrapper<Statement,QueryEvaluationException>QueryEvaluationExceptionpublic void startRDF()
              throws RDFHandlerException
RDFHandlerstartRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public Map<String,String> getNamespaces()
GraphQueryResultgetNamespaces in interface GraphQueryResultpublic void handleComment(String comment) throws RDFHandlerException
RDFHandlerhandleComment in interface RDFHandlercomment - The comment.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleNamespace(String prefix, String uri) throws RDFHandlerException
RDFHandlerhandleNamespace in interface RDFHandlerprefix - The prefix for the namespace, or an empty string in case of a default namespace.uri - The URI that the prefix maps to.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleStatement(Statement st) throws RDFHandlerException
RDFHandlerhandleStatement in interface RDFHandlerst - The statement.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void endRDF()
            throws RDFHandlerException
RDFHandlerendRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.