Class AbstractSPARQLJSONWriter<T>

    • Field Detail

      • jg

        protected final com.fasterxml.jackson.core.JsonGenerator jg
      • mOptions

        protected final Options mOptions
      • firstTupleWritten

        protected boolean firstTupleWritten
      • documentOpen

        protected boolean documentOpen
      • headerOpen

        protected boolean headerOpen
      • headerComplete

        protected boolean headerComplete
      • tupleVariablesFound

        protected boolean tupleVariablesFound
      • linksFound

        protected boolean linksFound
    • Constructor Detail

      • AbstractSPARQLJSONWriter

        protected AbstractSPARQLJSONWriter​(@Nonnull
                                           java.io.OutputStream theOutput,
                                           @Nonnull
                                           Options theOptions)
    • Method Detail

      • links

        public void links​(@Nonnull
                          java.util.List<java.lang.String> theLinks)
        Handle the set of links from the result
        Specified by:
        links in interface QueryResultHandler<T>
        Specified by:
        links in interface QueryResultWriter<T>
        Parameters:
        theLinks - The links
        See Also:
        "link"
      • startHeader

        protected void startHeader()
      • writeHeaderFields

        protected void writeHeaderFields()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • endHeader

        protected void endHeader()
      • writeValue

        protected void writeValue​(@Nonnull
                                  Value value)
                           throws java.io.IOException
        Throws:
        java.io.IOException