Class WindowDefinitionNode

All Implemented Interfaces:
Visitable

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

    • 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 Details

  • Method Details

    • toString

      public String toString()
      java.lang.Object override.
      Overrides:
      toString in class QueryTreeNode
      Returns:
      This node formatted as a String
      See Also:
    • printSubNodes

      public void printSubNodes(int depth)
      QueryTreeNode override. Prints the sub-nodes of this object.
      Overrides:
      printSubNodes in class QueryTreeNode
      Parameters:
      depth - The depth of this node in the tree
      See Also:
    • 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.