object Query
- Alphabetic
- By Inheritance
- Query
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Binding(name: String, value: Value) extends Product with Serializable
- case class Component[F[_]](mapping: Mapping[F], join: (Query, Cursor) => Result[Query], child: Query) extends Query with Product with Serializable
Identifies a component boundary.
Identifies a component boundary.
join
is applied to the current cursor andchild
yielding a continuation query which will be evaluated by the interpreter identified bycomponentId
. - case class Count(name: String, child: Query) extends Query with Product with Serializable
Computes the number of top-level elements of
child
as fieldname
- case class Effect[F[_]](handler: EffectHandler[F], child: Query) extends Query with Product with Serializable
Embeds possibly batched effects.
Embeds possibly batched effects.
handler
is applied to one or more possibly batched queries and cursors yielding corresponding continuation queries and cursors which will be evaluated by the current interpreter in the next phase. - trait EffectHandler[F[_]] extends AnyRef
- case class Environment(env: Env, child: Query) extends Query with Product with Serializable
Add
env
to the environment for the continuationchild
- case class Filter(pred: Predicate, child: Query) extends Query with Product with Serializable
Retains only elements satisfying
pred
and continues withchild
- case class Group(queries: List[Query]) extends Query with Product with Serializable
A Group of sibling queries at the same level
- case class Introspect(schema: Schema, child: Query) extends Query with Product with Serializable
Evaluates an introspection query relative to
schema
- case class Limit(num: Int, child: Query) extends Query with Product with Serializable
Limits the results of list-producing continuation
child
tonum
elements - case class Narrow(subtpe: TypeRef, child: Query) extends Query with Product with Serializable
The result of
child
if the focus is of typesubtpe
,Empty
otherwise. - case class Offset(num: Int, child: Query) extends Query with Product with Serializable
Drops the first
num
elements of list-producing continuationchild
. - case class OrderBy(selections: OrderSelections, child: Query) extends Query with Product with Serializable
Orders the results of list-producing continuation
child
by fields specified byselections
. - case class OrderSelection[T](term: Term[T], ascending: Boolean = true, nullsLast: Boolean = true)(implicit evidence$1: Order[T]) extends Product with Serializable
- case class OrderSelections(selections: List[OrderSelection[_]]) extends Product with Serializable
- case class Rename(name: String, child: Query) extends Query with Product with Serializable
Rename the topmost field of
sel
toname
. - case class Select(name: String, args: List[Binding], child: Query = Empty) extends Query with Product with Serializable
Select field
name
given argumentsargs
and continue withchild
- case class Skip(sense: Boolean, cond: Value, child: Query) extends Query with Product with Serializable
Skips/includes the continuation
child
depending on the value ofcond
- case class TransformCursor(f: (Cursor) => Result[Cursor], child: Query) extends Query with Product with Serializable
Uses the supplied function to compute a continuation
Cursor
from the currentCursor
. - case class Unique(child: Query) extends Query with Product with Serializable
Continues with single-element-list-producing
child
and yields the single element - case class UntypedNarrow(tpnme: String, child: Query) extends Query with Product with Serializable
Untyped precursor of
Narrow
.Untyped precursor of
Narrow
.Trees of this type will be replaced by a corresponding
Narrow
bySelectElaborator
. - case class UntypedVarDef(name: String, tpe: Ast.Type, default: Option[Value]) extends Product with Serializable
- type UntypedVarDefs = List[UntypedVarDef]
- type VarDefs = List[InputValue]
- type Vars = Map[String, (Type, Value)]
- case class Wrap(name: String, child: Query) extends Query with Product with Serializable
Wraps the result of
child
as a field namedname
of an enclosing object.
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 children(q: Query): List[Query]
Returns the top-level field selections of the supplied query.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fieldAlias(query: Query, fieldName: String): Option[String]
Returns the alias, if any, of the top-level field
fieldName
in the supplied query. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hasField(query: Query, fieldName: String): Boolean
True if
fieldName
is a top-level selection of the supplied query, false otherwise. - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapFields(query: Query)(f: (Query) => Result[Query]): Result[Query]
Tranform the children of
query
using the supplied function. - def mergeQueries(qs: List[Query]): Query
Merge the given queries as a single query
- def mkPathQuery(paths: List[List[String]]): List[Query]
Construct a query which yields all the supplied paths
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def renameRoot(q: Query, rootName: String): Option[Query]
- def rootName(q: Query): Option[(String, Option[String])]
Computes the root name and optional alias of the supplied query if it is unique,
None
otherwise. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def ungroup(query: Query): List[Query]
Yields a list of the top level queries of the supplied, possibly grouped query.
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object Empty extends Query with Product with Serializable
The terminal query
- object FilterOrderByOffsetLimit
Constructor/extractor for nested Filter/OrderBy/Limit/Offset patterns in the query algebra
- object PossiblyRenamedSelect
Extractor for nested Rename/Select patterns in the query algebra
Extractor for nested Rename/Select patterns in the query algebra
PossiblyRenamedSelect is an extractor/constructor for a Select node possibly wrapped in a Rename node so that they can be handled together conveniently.
- case object Skipped extends Query with Product with Serializable
A placeholder for a skipped node
- object TypeCase
Extractor for grouped Narrow patterns in the query algebra