Class AnalyticFunction
java.lang.Object
org.springframework.data.relational.core.sql.AnalyticFunction
- All Implemented Interfaces:
Expression,Segment,Visitable
Represents an analytic function, also known as windowing function
- Since:
- 2.7
- Author:
- Jens Schauder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.relational.core.sql.AnalyticFunction.AliasedAnalyticFunctionorg.springframework.data.relational.core.sql.AnalyticFunction.AliasedAnalyticFunctionas(SqlIdentifier alias) static AnalyticFunctioncreate(String function, Expression... arguments) booleaninthashCode()Generate a hash code from thisSegment.orderBy(Expression... orderByExpression) orderBy(OrderByField... orderBy) partitionBy(Expression... partitionBy) toString()Return a SQL string representation of thisSegment.voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Method Details
-
create
-
partitionBy
-
orderBy
-
orderBy
-
as
public org.springframework.data.relational.core.sql.AnalyticFunction.AliasedAnalyticFunction as(String alias) -
as
public org.springframework.data.relational.core.sql.AnalyticFunction.AliasedAnalyticFunction as(SqlIdentifier alias) -
visit
Description copied from interface:Visitable -
hashCode
public int hashCode()Description copied from interface:SegmentGenerate a hash code from thisSegment.Hashcode typically derives from the
Segment.toString()representation so twoSegments yield the sameSegment.hashCode()if theirSegment.toString()representation matches. -
equals
Description copied from interface:SegmentCheck whether thisSegmentis equal to anotherSegment.Equality is typically given if the
Segment.toString()representation matches. -
toString
Description copied from interface:SegmentReturn a SQL string representation of thisSegment.The representation is intended for debugging purposes and an approximation to the generated SQL. While it might work in the context of a specific dialect, you should not assume that the
Segment.toString()representation works across multiple databases.
-