Class RowNumberFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.window.AbstractWindowFunction
-
- com.blazebit.persistence.impl.function.window.row.RowNumberFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
public class RowNumberFunction extends AbstractWindowFunction
Number of the current row within its partition, counting from 1. Syntax: row_number()- Since:
- 1.4.0
- Author:
- Jan-Willem Gmelig Meyling, Sayra Ranjha
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.blazebit.persistence.impl.function.window.AbstractWindowFunction
AbstractWindowFunction.WindowFunction
-
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAME-
Fields inherited from class com.blazebit.persistence.impl.function.window.AbstractWindowFunction
allowsFilterClause, functionName, nullIsSmallest, supportsFilterClause, supportsNullPrecedence
-
-
Constructor Summary
Constructors Constructor Description RowNumberFunction(com.blazebit.persistence.spi.DbmsDialect dbmsDialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)protected voidrenderArguments(com.blazebit.persistence.spi.FunctionRenderContext context, AbstractWindowFunction.WindowFunction windowFunction)protected booleanrequiresOver()-
Methods inherited from class com.blazebit.persistence.impl.function.window.AbstractWindowFunction
appendEmulatedOrderByElementWithNulls, getCaseWhenPost, getCaseWhenPre, getWindowFunction, getWindowFunction, hasArguments, hasParenthesesIfNoArguments, optimizeNullPrecedence, processArgument, render, render, renderArgument, renderFilterExpressions, renderFrame, renderFramePosition, renderFunction, renderOrder, renderOrderBy, renderPartitions
-
-
-
-
Field Detail
-
FUNCTION_NAME
public static final String FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getReturnType
public Class<?> getReturnType(Class<?> firstArgumentType)
- Specified by:
getReturnTypein interfacecom.blazebit.persistence.spi.JpqlFunction- Overrides:
getReturnTypein classAbstractWindowFunction
-
renderArguments
protected void renderArguments(com.blazebit.persistence.spi.FunctionRenderContext context, AbstractWindowFunction.WindowFunction windowFunction)- Overrides:
renderArgumentsin classAbstractWindowFunction
-
requiresOver
protected boolean requiresOver()
- Overrides:
requiresOverin classAbstractWindowFunction
-
-