class Window[A] extends AnyRef
Description of a window function.
Used inside an over
clause when defining a windowed query:
.over(_.partitionBy(_.country))
Example:
select[Person] .window(_.rowNumber) .over(_.partitionBy(_.country))
- A
the input type of
this
window function
- Alphabetic
- By Inheritance
- Window
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Window(__scalaql_window_partitions: List[(A) => Any], __scalaql_window_partitionTags: List[LightTypeTag], __scalaql_window_orders: List[((A) => Any, Ordering[Any])], __scalaql_window_orderTags: List[LightTypeTag])
- Annotations
- @internalApi()
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
- val __scalaql_window_orderTags: List[LightTypeTag]
- val __scalaql_window_orders: List[((A) => Any, Ordering[Any])]
- val __scalaql_window_partitionTags: List[LightTypeTag]
- val __scalaql_window_partitions: List[(A) => 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()
- 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()
- macro def orderBy[B, C, D](f1: (A) => B, f2: (A) => C, f3: (A) => D)(implicit orderingB: Ordering[B], orderingC: Ordering[C], orderingD: Ordering[D]): Window[A]
Specifies ordering for
this
window function input values.Specifies ordering for
this
window function input values.Example:
select[Person] .window(_.rowNumber) .over( _.partitionBy(_.country) .orderBy(_.name, _.age.desc, _.salary) )
- B
first ordering key type
- C
second ordering key type
- D
third ordering key type
- f1
get the first ordering key
- f2
get the second ordering key
- f3
get the third ordering key
- orderingB
implicit ordering for the first key
- orderingC
implicit ordering for the second key
- orderingD
implicit ordering for the third key
- returns
this
window function with ordering
- macro def orderBy[B, C](f1: (A) => B, f2: (A) => C)(implicit orderingB: Ordering[B], orderingC: Ordering[C]): Window[A]
Specifies ordering for
this
window function input values.Specifies ordering for
this
window function input values.Example:
select[Person] .window(_.rowNumber) .over( _.partitionBy(_.country) .orderBy(_.name, _.age.desc) )
- B
first ordering key type
- C
second ordering key type
- f1
get the first ordering key
- f2
get the second ordering key
- orderingB
implicit ordering for the first key
- orderingC
implicit ordering for the second key
- returns
this
window function with ordering
- macro def orderBy[B](f: (A) => B)(implicit orderingB: Ordering[B]): Window[A]
Specifies ordering for
this
window function input values.Specifies ordering for
this
window function input values.Example:
select[Person] .window(_.rowNumber) .over( _.partitionBy(_.country) .orderBy(_.age) )
- B
ordering key type
- f
get ordering key
- orderingB
implicit ordering for the key
- returns
this
window function with ordering
- 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()