Class AbstractWindowFunction

    • Field Detail

      • functionName

        protected final String functionName
      • nullIsSmallest

        protected final boolean nullIsSmallest
      • supportsNullPrecedence

        protected final boolean supportsNullPrecedence
      • supportsFilterClause

        protected final boolean supportsFilterClause
      • allowsFilterClause

        protected final boolean allowsFilterClause
    • Constructor Detail

      • AbstractWindowFunction

        protected AbstractWindowFunction​(String functionName,
                                         boolean nullIsSmallest,
                                         boolean supportsNullPrecedence,
                                         boolean supportsFilterClause,
                                         boolean allowsFilterClause)
    • Method Detail

      • hasArguments

        public boolean hasArguments()
        Specified by:
        hasArguments in interface com.blazebit.persistence.spi.JpqlFunction
      • hasParenthesesIfNoArguments

        public boolean hasParenthesesIfNoArguments()
        Specified by:
        hasParenthesesIfNoArguments in interface com.blazebit.persistence.spi.JpqlFunction
      • getReturnType

        public Class<?> getReturnType​(Class<?> firstArgumentType)
        Specified by:
        getReturnType in interface com.blazebit.persistence.spi.JpqlFunction
      • render

        public final void render​(com.blazebit.persistence.spi.FunctionRenderContext context)
        Specified by:
        render in interface com.blazebit.persistence.spi.JpqlFunction
      • getWindowFunction

        protected <T extends AbstractWindowFunction.WindowFunction> T getWindowFunction​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                                                                        T function,
                                                                                        int startIndex)
      • requiresOver

        protected boolean requiresOver()
      • getCaseWhenPre

        protected static String getCaseWhenPre​(List<String> filterExpressions)
      • getCaseWhenPost

        protected static String getCaseWhenPost()
      • renderFilterExpressions

        protected void renderFilterExpressions​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                               List<String> filterExpressions)
      • renderPartitions

        protected void renderPartitions​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                        List<String> partitionExpressions)
      • renderOrderBy

        protected void renderOrderBy​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                     List<Order> orderBys)
      • renderOrder

        protected void renderOrder​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                   Order order)
      • renderFramePosition

        protected void renderFramePosition​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                           com.blazebit.persistence.parser.expression.WindowFramePositionType type,
                                           String frameExpression)
      • optimizeNullPrecedence

        protected boolean optimizeNullPrecedence()
      • appendEmulatedOrderByElementWithNulls

        protected void appendEmulatedOrderByElementWithNulls​(com.blazebit.persistence.spi.FunctionRenderContext context,
                                                             Order element)