Class WindowDefinitionNode

  • All Implemented Interfaces:
    Visitable

    public final class WindowDefinitionNode
    extends WindowNode
    This class represents an OLAP window definition.
    • Field Detail

      • inlined

        private boolean inlined
        True of the window definition was inlined.
      • orderByList

        private OrderByList orderByList
        The order by list if the window definition contains a , else null.
    • Constructor Detail

      • WindowDefinitionNode

        WindowDefinitionNode​(java.lang.String windowName,
                             OrderByList orderByList,
                             ContextManager cm)
                      throws StandardException
        Constructor.
        Parameters:
        windowName - The window name, null if in-lined definition
        orderByList - ORDER BY list
        cm - The context manager
        Throws:
        StandardException
    • Method Detail

      • findEquivalentWindow

        WindowDefinitionNode findEquivalentWindow​(WindowList wl)
        Used to merge equivalent window definitions.
        Parameters:
        wl - list of window definitions
        Returns:
        an existing window definition from wl, if 'this' is equivalent to a window in wl.
      • isEquivalent

        private boolean isEquivalent​(WindowDefinitionNode other)
        Returns:
        true if the window specifications are equal; no need to create more than one window then.
      • getOrderByList

        OrderByList getOrderByList()
        Returns:
        the order by list of this window definition if any, else null.