Class AsyncGraphQueryResult

    • Constructor Detail

      • AsyncGraphQueryResult

        public AsyncGraphQueryResult​(java.io.InputStream input,
                                     RDFParser parser,
                                     Options parserOptions,
                                     java.util.concurrent.ExecutorService execService,
                                     int batchSize,
                                     CancelCheck cancelCheck,
                                     java.util.function.Consumer<java.lang.Boolean> onClose,
                                     java.util.function.Function<java.lang.Exception,​java.lang.RuntimeException> onError)
    • Method Detail

      • close

        public void close()
        Description copied from interface: QueryResult
        Close the query results and return any resources in use back to the system. This *must* be called on all result sets to avoid resource leaks.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface CloseableIterator<Statement>
        Specified by:
        close in interface QueryResult<Statement>
      • computeNext

        protected Statement computeNext()
        Specified by:
        computeNext in class com.google.common.collect.AbstractIterator<Statement>
      • namespaces

        @Nonnull
        public Namespaces namespaces()
        Description copied from interface: GraphQueryResult
        The set of namespaces, if specified, that are to be used with the result set.
        Specified by:
        namespaces in interface GraphQueryResult
        Returns:
        the namespaces