QueryInterpreter

grackle.QueryInterpreter
See theQueryInterpreter companion class

Attributes

Companion
class
Source
queryinterpreter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object ProtoJson

Attributes

Source
queryinterpreter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ProtoJson.type

Types

type ProtoJson <: AnyRef

Opaque type of partially constructed query results.

Opaque type of partially constructed query results.

Values may be fully expanded Json values, objects or arrays which not yet fully evaluated subtrees, or subqueries which are deferred to the next stage or another component of a composite interpreter.

Attributes

Source
queryinterpreter.scala

Value members

Concrete methods

def complete[F[_] : Monad](pj: ProtoJson): F[Result[Json]]

Complete a possibly partial result.

Complete a possibly partial result.

Completes a single possibly partial result as described for completeAll.

Attributes

Source
queryinterpreter.scala

Complete a collection of possibly deferred results.

Complete a collection of possibly deferred results.

Each result is completed by locating any subtrees which have been deferred or delegated to some other component interpreter in an overall composite interpreter. Deferred subtrees are gathered, grouped by their associated interpreter and then evaluated in batches. The results of these batch evaluations are then completed in a subsequent stage recursively until the results are fully evaluated or yield errors.

Complete results are substituted back into the corresponding enclosing Json.

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

Attributes

Source
queryinterpreter.scala