Class GraphQlExec<K>
java.lang.Object
org.aksw.jenax.graphql.sparql.v2.exec.api.high.GraphQlExec<K>
- All Implemented Interfaces:
AutoCloseable,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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidclose()booleanisSingle()Whether this provider is expected to yield at most 1 result.booleansendNextItemToWriter(ObjectNotationWriter<K, org.apache.jena.graph.Node> writer) longsendRemainingItemsToWriter(ObjectNotationWriter<K, org.apache.jena.graph.Node> writer) voidwriteExtensions(ObjectNotationWriter<K, org.apache.jena.graph.Node> writer, Function<String, K> stringToKey)
-
Field Details
-
delegate
-
-
Constructor Details
-
GraphQlExec
-
-
Method Details
-
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, throws IOExceptionK> stringToKey) - Throws:
IOException
-
isSingle
public boolean isSingle()Description copied from interface:GraphQlExecCoreWhether 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 @one 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:
isSinglein interfaceGraphQlExecCore
-
abort
public void abort()- Specified by:
abortin interfaceGraphQlExecCore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGraphQlExecCore
-