Class StatementSources.RDFStreamStatementSource

  • All Implemented Interfaces:
    StatementSource, java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    StatementSources

    public static class StatementSources.RDFStreamStatementSource
    extends java.lang.Object
    implements StatementSource
    • Constructor Detail

      • RDFStreamStatementSource

        public RDFStreamStatementSource​(RDFStream rdfStream)
      • RDFStreamStatementSource

        public RDFStreamStatementSource​(RDFStream rdfStream,
                                        java.io.Closeable closeable)
    • Method Detail

      • getContext

        public Resource getContext()
        Description copied from interface: StatementSource
        Return the context these statements belong to. When non-null, this should override the context specified on the statements themselves.
        Specified by:
        getContext in interface StatementSource
        Returns:
        the context of all the statements from this source, or `null` if there is no context (for all of them) or they each have their own context specified.
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • estimatedCount

        public long estimatedCount()
        Description copied from interface: StatementSource
        Returns the estimated count of statements in this source or NO_ESTIMATE if the estimate is not known.
        Specified by:
        estimatedCount in interface StatementSource