Class SortBufferScan

All Implemented Interfaces:
ScanManager, GenericScanController, GroupFetchScanController, RowCountable, ScanController, ScanInfo

public class SortBufferScan extends SortScan
A sort scan that just reads rows out of a sorter.
  • Field Details

    • sortBuffer

      protected SortBuffer sortBuffer
      The sorter we're returning rows from.
  • Constructor Details

  • Method Details

    • next

      public boolean next() throws StandardException
      Move to the next position in the scan.
      Returns:
      True if there is a next position in the scan, false if there isn't.
      Throws:
      StandardException - Standard exception policy.
      See Also:
    • closeForEndTransaction

      public boolean closeForEndTransaction(boolean closeHeldScan)
      Close the scan.
      Parameters:
      closeHeldScan - If true, means to close scan even if it has been opened to be kept opened across commit. This is used to close these scans on abort.
      Returns:
      boolean indicating that the close has resulted in a real close of the scan. A held scan will return false if called by closeForEndTransaction(false), otherwise it will return true. A non-held scan will always return true.
    • close

      public void close()
      Close the scan.
      Specified by:
      close in interface GenericScanController
      Overrides:
      close in class SortScan
      See Also: