c

edu.gemini.grackle

ComposedQueryInterpreter

class ComposedQueryInterpreter[F[_]] extends QueryInterpreter[F]

A query interpreter composed from the supplied Map of labelled component interpreters.

Linear Supertypes
QueryInterpreter[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComposedQueryInterpreter
  2. QueryInterpreter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ComposedQueryInterpreter(mapping: Map[String, QueryInterpreter[F]])(implicit arg0: Monad[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val F: Monad[F]
    Definition Classes
    QueryInterpreter
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def complete(pj: ProtoJson): F[Result[Json]]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def run(query: Query, rootTpe: Type): F[Json]

    Interpret query with expected type rootTpe.

    Interpret query with expected type rootTpe.

    The query is fully interpreted, including deferred or staged components.

    The resulting Json value should include standard GraphQL error information in the case of failure.

    Definition Classes
    QueryInterpreter
  18. def runFields(query: Query, tpe: Type, cursor: Cursor): Result[List[(String, ProtoJson)]]

    Interpret query against cursor, yielding a collection of fields.

    Interpret query against cursor, yielding a collection of fields.

    If the query is valid, the field subqueries will all be valid fields of the enclosing type tpe and the resulting fields may be used to build a Json object of type tpe. If the query is invalid errors will be returned on the left hand side of the result.

    Definition Classes
    QueryInterpreter
  19. def runRoot(query: Query, rootTpe: Type): F[Result[Json]]

    Interpret query with expected type rootTpe.

    Interpret query with expected type rootTpe.

    The query is fully interpreted, including deferred or staged components.

    Errors are accumulated on the Left of the result.

    Definition Classes
    QueryInterpreter
  20. def runRootValue(query: Query, rootTpe: Type): F[Result[ProtoJson]]

    Interpret query with expected type rootTpe.

    Interpret query with expected type rootTpe.

    At most one stage will be run and the result may contain deferred components.

    Errors are accumulated on the Left of the result.

    Definition Classes
    ComposedQueryInterpreterQueryInterpreter
  21. def runRootValues(queries: List[(Query, Type)]): F[(Chain[Json], List[ProtoJson])]

    Interpret multiple queries with respect to their expected types.

    Interpret multiple queries with respect to their expected types.

    Each query is interpreted with respect to the expected type it is paired with. The result list is aligned with the argument list query list. For each query at most one stage will be run and the corresponding result may contain deferred components.

    Errors are aggregated across all the argument queries and are accumulated on the Left of the result.

    This method is typically called at the end of a stage to evaluate deferred subqueries in the result of that stage. These will be grouped by and passed jointly to the responsible interpreter in the next stage using this method. Interpreters which are able to benefit from combining queries may do so by overriding this method to implement their specific combinging logic.

    Definition Classes
    QueryInterpreter
  22. def runValue(query: Query, tpe: Type, cursor: Cursor): Result[ProtoJson]

    Interpret query against cursor with expected type tpe.

    Interpret query against cursor with expected type tpe.

    If the query is invalid errors will be returned on teh left hand side of the result.

    Definition Classes
    QueryInterpreter
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from QueryInterpreter[F]

Inherited from AnyRef

Inherited from Any

Ungrouped