Package

org.opencypher.okapi.ir.impl.parse.rewriter

legacy

Permalink

package legacy

Visibility
  1. Public
  2. All

Type Members

  1. case class normalizeReturnClauses(mkException: (String, InputPosition) ⇒ CypherException) extends Rewriter with Product with Serializable

    Permalink

    This rewriter makes sure that all return items in a RETURN clauses are aliased, and moves any ORDER BY to a preceding WITH clause

    This rewriter makes sure that all return items in a RETURN clauses are aliased, and moves any ORDER BY to a preceding WITH clause

    Example:

    MATCH (n) RETURN n.foo AS foo, n.bar ORDER BY foo

    This rewrite will change the query to:

    MATCH (n) WITH n.foo AS FRESHIDxx, n.bar AS FRESHIDnn ORDER BY FRESHIDxx RETURN FRESHIDxx AS foo, FRESHIDnn AS n.bar

  2. case class normalizeWithClauses(mkException: (String, InputPosition) ⇒ CypherException) extends Rewriter with Product with Serializable

    Permalink

    This rewriter normalizes the scoping structure of a query, ensuring it is able to be correctly processed for semantic checking.

    This rewriter normalizes the scoping structure of a query, ensuring it is able to be correctly processed for semantic checking. It makes sure that all return items in a WITH clauses are aliased.

    It also replaces expressions and subexpressions in ORDER BY and WHERE to use aliases introduced by the WITH, where possible.

    This rewriter depends on normalizeReturnClauses having first been run.

    Example:

    MATCH n WITH n.prop AS prop ORDER BY n.prop DESC RETURN prop

    This rewrite will change the query to:

    MATCH n WITH n.prop AS prop ORDER BY prop DESC RETURN prop

Value Members

  1. object projectFreshSortExpressions extends Rewriter with Product with Serializable

    Permalink

Ungrouped