Class PercentRankFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.window.AbstractWindowFunction
-
- com.blazebit.persistence.impl.function.window.percentrank.PercentRankFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
public class PercentRankFunction extends AbstractWindowFunction
Relative rank of the current row: (rank - 1) / (total rows - 1)- 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 PercentRankFunction(com.blazebit.persistence.spi.DbmsDialect dbmsDialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)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, renderArguments, 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
-
requiresOver
protected boolean requiresOver()
- Overrides:
requiresOverin classAbstractWindowFunction
-
-