Class GraphQlDataProviderWrapperBase
java.lang.Object
org.aksw.jenax.graphql.impl.common.GraphQlDataProviderWrapperBase
- All Implemented Interfaces:
GraphQlDataProvider
- Direct Known Subclasses:
GraphQlDataProviderMaterialize
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectMetadata for this stream.getName()The name of the provider.booleanisSingle()Whether this provider is expected to yield at most 1 result.Stream<com.google.gson.JsonElement>A stream over the resulting items.toString()voidwrite(com.google.gson.stream.JsonWriter writer, com.google.gson.Gson gson) Write the data of this provider to the given json writer
-
Field Details
-
delegate
-
-
Constructor Details
-
GraphQlDataProviderWrapperBase
-
-
Method Details
-
getDelegate
-
getName
Description copied from interface:GraphQlDataProviderThe name of the provider. Usable as a key in the JSON result.- Specified by:
getNamein interfaceGraphQlDataProvider
-
getMetadata
public com.google.gson.JsonObject getMetadata()Description copied from interface:GraphQlDataProviderMetadata for this stream.- Specified by:
getMetadatain interfaceGraphQlDataProvider
-
openStream
Description copied from interface:GraphQlDataProviderA stream over the resulting items.- Specified by:
openStreamin interfaceGraphQlDataProvider
-
isSingle
public boolean isSingle()Description copied from interface:GraphQlDataProviderWhether 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 does not necessarily know whether this information is truthful. If a violation is encountered during runtime then an exception will be raised.- Specified by:
isSinglein interfaceGraphQlDataProvider
-
write
public void write(com.google.gson.stream.JsonWriter writer, com.google.gson.Gson gson) throws IOException Description copied from interface:GraphQlDataProviderWrite the data of this provider to the given json writer- Specified by:
writein interfaceGraphQlDataProvider- Throws:
IOException
-
toString
-