Class RowCountNode

All Implemented Interfaces:
Optimizable, Visitable

public final class RowCountNode extends SingleChildResultSetNode
The result set generated by this node (RowCountResultSet) implements the filtering of rows needed for the and the . It sits on top of the normal SELECT's top result set, but under any ScrollInsensitiveResultSet. The latter's positioning is needed for the correct functioning of and in the presence of scrollable and/or updatable result sets and CURRENT OF cursors.
  • Field Details

    • offset

      private ValueNode offset
      If not null, this represents the value of a .
    • fetchFirst

      private ValueNode fetchFirst
      If not null, this represents the value of a .
    • hasJDBClimitClause

      private boolean hasJDBClimitClause
      True if the offset/fetchFirst clauses were added by JDBC LIMIT syntax.
  • Constructor Details

    • RowCountNode

      RowCountNode(ResultSetNode childResult, ResultColumnList rcl, ValueNode offset, ValueNode fetchFirst, boolean hasJDBClimitClause, ContextManager cm) throws StandardException
      Constructor for a RowCountNode
      Parameters:
      childResult - The result set for which we want to get only a subset
      rcl - The result columns we want
      offset - The offset, if any, in the result set
      fetchFirst - The number of rows to inspect to get
      hasJDBClimitClause - true if a JDBC limit syntax was used
      cm - The context manager
      Throws:
      StandardException
  • Method Details