Class GraphQlDataProviderWrapperBase

java.lang.Object
org.aksw.jenax.graphql.impl.common.GraphQlDataProviderWrapperBase
All Implemented Interfaces:
GraphQlDataProvider
Direct Known Subclasses:
GraphQlDataProviderMaterialize

public class GraphQlDataProviderWrapperBase extends Object implements GraphQlDataProvider
  • Field Details

  • Constructor Details

    • GraphQlDataProviderWrapperBase

      public GraphQlDataProviderWrapperBase(GraphQlDataProvider delegate)
  • Method Details

    • getDelegate

      public GraphQlDataProvider getDelegate()
    • getName

      public String getName()
      Description copied from interface: GraphQlDataProvider
      The name of the provider. Usable as a key in the JSON result.
      Specified by:
      getName in interface GraphQlDataProvider
    • getMetadata

      public com.google.gson.JsonObject getMetadata()
      Description copied from interface: GraphQlDataProvider
      Metadata for this stream.
      Specified by:
      getMetadata in interface GraphQlDataProvider
    • openStream

      public Stream<com.google.gson.JsonElement> openStream()
      Description copied from interface: GraphQlDataProvider
      A stream over the resulting items.
      Specified by:
      openStream in interface GraphQlDataProvider
    • isSingle

      public boolean isSingle()
      Description copied from interface: GraphQlDataProvider
      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 does not necessarily know whether this information is truthful. If a violation is encountered during runtime then an exception will be raised.
      Specified by:
      isSingle in interface GraphQlDataProvider
    • write

      public void write(com.google.gson.stream.JsonWriter writer, com.google.gson.Gson gson) throws IOException
      Description copied from interface: GraphQlDataProvider
      Write the data of this provider to the given json writer
      Specified by:
      write in interface GraphQlDataProvider
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object