Query

edu.gemini.grackle.Query$
See theQuery companion trait
object Query

Attributes

Companion:
trait
Source:
query.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Query.type

Members list

Concise view

Type members

Classlikes

case class Binding(name: String, value: Value)

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Component[F[_]](mapping: Mapping[F], join: (Cursor, Query) => Result[Query], child: Query) extends Query

Identifies a component boundary. join is applied to the current cursor and child yielding a continuation query which will be evaluated by the interpreter identified by componentId.

Identifies a component boundary. join is applied to the current cursor and child yielding a continuation query which will be evaluated by the interpreter identified by componentId.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Count(name: String, child: Query) extends Query

Computes the number of top-level elements of child as field name

Computes the number of top-level elements of child as field name

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Defer(join: (Cursor, Query) => Result[Query], child: Query, rootTpe: Type) extends Query

A deferred query. join is applied to the current cursor and child yielding a continuation query which will be evaluated by the current interpreter in its next stage.

A deferred query. join is applied to the current cursor and child yielding a continuation query which will be evaluated by the current interpreter in its next stage.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case object Empty extends Query

The terminal query

The terminal query

Attributes

Source:
query.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
Self type
Empty.type
case class Environment(env: Env, child: Query) extends Query

Add env to the environment for the continuation child

Add env to the environment for the continuation child

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Filter(pred: Predicate, child: Query) extends Query

Retains only elements satisfying pred and continues with child

Retains only elements satisfying pred and continues with child

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any

Constructor/extractor for nested Filter/OrderBy/Limit/Offset patterns in the query algebra

Constructor/extractor for nested Filter/OrderBy/Limit/Offset patterns in the query algebra

Attributes

Source:
query.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Group(queries: List[Query]) extends Query

A Group of sibling queries at the same level

A Group of sibling queries at the same level

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Introspect(schema: Schema, child: Query) extends Query

Evaluates an introspection query relative to schema

Evaluates an introspection query relative to schema

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Limit(num: Int, child: Query) extends Query

Limits the results of list-producing continuation child to num elements

Limits the results of list-producing continuation child to num elements

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Narrow(subtpe: TypeRef, child: Query) extends Query

The result of child if the focus is of type subtpe, Empty otherwise.

The result of child if the focus is of type subtpe, Empty otherwise.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Offset(num: Int, child: Query) extends Query

Drops the first num elements of list-producing continuation child.

Drops the first num elements of list-producing continuation child.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class OrderBy(selections: OrderSelections, child: Query) extends Query

Orders the results of list-producing continuation child by fields specified by selections.

Orders the results of list-producing continuation child by fields specified by selections.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class OrderSelection[T](term: Term[T], ascending: Boolean, nullsLast: Boolean)(implicit evidence$1: Order[T])

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class OrderSelections(selections: List[OrderSelection[_]])

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Extractor for nested Rename/Select patterns in the query algebra

Extractor for nested Rename/Select patterns in the query algebra

Attributes

Source:
query.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Rename(name: String, child: Query) extends Query

Rename the topmost field of sel to name.

Rename the topmost field of sel to name.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Select(name: String, args: List[Binding], child: Query) extends Query

Select field name given arguments args and continue with child

Select field name given arguments args and continue with child

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class Skip(sense: Boolean, cond: Value, child: Query) extends Query

Skips/includes the continuation child depending on the value of cond

Skips/includes the continuation child depending on the value of cond

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case object Skipped extends Query

A placeholder for a skipped node

A placeholder for a skipped node

Attributes

Source:
query.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
Self type
Skipped.type
case class TransformCursor(f: Cursor => Result[Cursor], child: Query) extends Query

Uses the supplied function to compute a continuation Cursor from the current Cursor.

Uses the supplied function to compute a continuation Cursor from the current Cursor.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
object TypeCase

Extractor for grouped Narrow patterns in the query algebra

Extractor for grouped Narrow patterns in the query algebra

Attributes

Source:
query.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Unique(child: Query) extends Query

Continues with single-element-list-producing child and yields the single element

Continues with single-element-list-producing child and yields the single element

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class UntypedNarrow(tpnme: String, child: Query) extends Query

Untyped precursor of Narrow.

Untyped precursor of Narrow.

Trees of this type will be replaced by a corresponding Narrow by SelectElaborator.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
case class UntypedVarDef(name: String, tpe: Type, default: Option[Value])

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Wrap(name: String, child: Query) extends Query

Wraps the result of child as a field named name of an enclosing object.

Wraps the result of child as a field named name of an enclosing object.

Attributes

Source:
query.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any

Types

Attributes

Source:
query.scala
type Vars = Map[String, (Type, Value)]

Attributes

Source:
query.scala

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

Value members

Concrete methods

Returns the top-level field selections of the supplied query.

Returns the top-level field selections of the supplied query.

Attributes

Source:
query.scala
def fieldAlias(query: Query, fieldName: String): Option[String]

Returns the alias, if any, of the top-level field fieldName in the supplied query.

Returns the alias, if any, of the top-level field fieldName in the supplied query.

Attributes

Source:
query.scala
def hasField(query: Query, fieldName: String): Boolean

True if fieldName is a top-level selection of the supplied query, false otherwise.

True if fieldName is a top-level selection of the supplied query, false otherwise.

Attributes

Source:
query.scala
def mapFields(query: Query)(f: Query => Result[Query]): Result[Query]

Tranform the children of query using the supplied function.

Tranform the children of query using the supplied function.

Attributes

Source:
query.scala

Merge the given queries as a single query

Merge the given queries as a single query

Attributes

Source:
query.scala

Construct a query which yields all the supplied paths

Construct a query which yields all the supplied paths

Attributes

Source:
query.scala
def renameRoot(q: Query, rootName: String): Option[Query]

Attributes

Source:
query.scala

Computes the root name and optional alias of the supplied query if it is unique, None otherwise.

Computes the root name and optional alias of the supplied query if it is unique, None otherwise.

Attributes

Source:
query.scala
def ungroup(query: Query): List[Query]

Yields a list of the top level queries of the supplied, possibly grouped query.

Yields a list of the top level queries of the supplied, possibly grouped query.

Attributes

Source:
query.scala