object QueryCompiler
- Alphabetic
- By Inheritance
- QueryCompiler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class ComponentElaborator extends Phase
A compiler phase which partitions a query for execution by multiple composed interpreters.
A compiler phase which partitions a query for execution by multiple composed interpreters.
This phase transforms the input query by assigning subtrees to component interpreters as specified by the supplied
mapping
.The mapping has
Type
and field name pairs as keys and component id and join function pairs as values. When the traversal of the input query visits aSelect
node with typeType.field name
it will replace theSelect
with aComponent
node comprising,1. the component id of the interpreter which will be responsible for evaluating the subquery. 2. A join function which will be called during interpretation with,
i) the cursor at that point in evaluation. ii) The deferred subquery.
This join function is responsible for computing the continuation query which will be evaluated by the responsible interpreter.
Because the join is provided with the cursor of the parent interpreter the subquery can be parameterised with values derived from the parent query.
- trait Phase extends AnyRef
A QueryCompiler phase.
- class SelectElaborator extends Phase
A compiler phase which translates
Select
nodes to be directly interpretable.A compiler phase which translates
Select
nodes to be directly interpretable.This phase,
1. types bindings according to the schema: i) untyped enums are validated and typed according to their declared type. ii) String and Int bindings are translated to ID bindings where appropriate. iii) default values are supplied for missing arguments. iv) arguments are permuted into the order declared in the schema.
2. eliminates Select arguments by delegating to a model-specific
PartialFunction
which is responsible for translatingSelect
nodes into a form which is directly interpretable, replacing them with aFilter
orUnique
node with aPredicate
which is parameterized by the arguments, eg.
might be translated to,Select("character", List(IDBinding("id", "1000")), child)
Filter(FieldEquals("id", "1000"), child)
3. types narrowing coercions by resolving the target type against the schema.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val introspectionMapping: Map[TypeRef, PartialFunction[Select, Result[Query]]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object ComponentElaborator
- object IntrospectionElaborator extends Phase
- object VariablesAndSkipElaborator extends Phase