case class normalizeWithAndReturnClauses(mkException: (String, InputPosition) ⇒ CypherException) extends Rewriter with Product with Serializable
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 WITH clauses are aliased.
It also replaces expressions and subexpressions in ORDER BY and WHERE to use aliases introduced by the WITH, where possible.
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 AS prop
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- normalizeWithAndReturnClauses
- Serializable
- Serializable
- Product
- Equals
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new normalizeWithAndReturnClauses(mkException: (String, InputPosition) ⇒ CypherException)
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
-
def
andThen[A](g: (AnyRef) ⇒ A): (AnyRef) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(that: AnyRef): AnyRef
- Definition Classes
- normalizeWithAndReturnClauses → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compose[A](g: (A) ⇒ AnyRef): (A) ⇒ AnyRef
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mkException: (String, InputPosition) ⇒ CypherException
-
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
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )