Package org.h2.result

Class FetchedResult

    • Field Detail

      • rowId

        long rowId
      • currentRow

        Value[] currentRow
      • nextRow

        Value[] nextRow
      • afterLast

        boolean afterLast
    • Constructor Detail

      • FetchedResult

        FetchedResult()
    • Method Detail

      • next

        public final boolean next()
        Description copied from interface: ResultInterface
        Go to the next row.
        Specified by:
        next in interface ResultInterface
        Returns:
        true if a row exists
      • isAfterLast

        public final boolean isAfterLast()
        Description copied from interface: ResultInterface
        Check if the current position is after last row.
        Specified by:
        isAfterLast in interface ResultInterface
        Returns:
        true if after last
      • getRowId

        public final long getRowId()
        Description copied from interface: ResultInterface
        Get the current row id, starting with 0. -1 is returned when next() was not called yet.
        Specified by:
        getRowId in interface ResultInterface
        Returns:
        the row id
      • needToClose

        public final boolean needToClose()
        Description copied from interface: ResultInterface
        Check if this result set should be closed, for example because it is buffered using a temporary file.
        Specified by:
        needToClose in interface ResultInterface
        Returns:
        true if close should be called.
      • createShallowCopy

        public final ResultInterface createShallowCopy​(Session targetSession)
        Description copied from interface: ResultInterface
        Create a shallow copy of the result set. The data and a temporary table (if there is any) is not copied.
        Specified by:
        createShallowCopy in interface ResultInterface
        Parameters:
        targetSession - the session of the copy
        Returns:
        the copy if possible, or null if copying is not possible