Class GraphQlExec<K>

java.lang.Object
org.aksw.jenax.graphql.sparql.v2.exec.api.high.GraphQlExec<K>
All Implemented Interfaces:
AutoCloseable, GraphQlExecCore

public class GraphQlExec<K> extends Object implements GraphQlExecCore
Adapter to wrap the execution's intended for individual nodes as one for an overall document. (Perhaps this interface should be renamed to GraphQlDocumentExec or maybe it can even be removed?)
  • Field Details

  • Constructor Details

  • Method Details

    • getDelegate

      public GraphQlFieldExec<K> getDelegate()
    • sendRemainingItemsToWriter

      public long sendRemainingItemsToWriter(ObjectNotationWriter<K,org.apache.jena.graph.Node> writer) throws IOException
      Throws:
      IOException
    • sendNextItemToWriter

      public boolean sendNextItemToWriter(ObjectNotationWriter<K,org.apache.jena.graph.Node> writer) throws IOException
      Throws:
      IOException
    • writeExtensions

      public void writeExtensions(ObjectNotationWriter<K,org.apache.jena.graph.Node> writer, Function<String,K> stringToKey) throws IOException
      Throws:
      IOException
    • isSingle

      public boolean isSingle()
      Description copied from interface: GraphQlExecCore
      Whether this provider is expected to yield at most 1 result. The client can use this information to e.g. omit starting an array in the output. However, the data provider may not necessarily know whether this information is truthful, because it may rely on user provided mapping information: For example, a field might be tagged with &#064one but during execution bindings amounting to multiple values are encountered; If a violation is encountered during runtime then an exception should be raised.
      Specified by:
      isSingle in interface GraphQlExecCore
    • abort

      public void abort()
      Specified by:
      abort in interface GraphQlExecCore
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface GraphQlExecCore