Class MergeScan

    • Field Detail

      • sortBuffer

        protected SortBuffer sortBuffer
        The sort buffer we will use.
      • mergeRuns

        protected java.util.Vector<java.lang.Long> mergeRuns
        The merge runs.
      • openScans

        protected StreamContainerHandle[] openScans
        Array of scan controllers for the merge runs. Entries in the array become null as the last row is pulled out and the scan is closed.
    • Method Detail

      • 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.
        See Also:
        ScanManager.closeForEndTransaction(boolean)
      • mergeARow

        void mergeARow​(int scanindex)
                throws StandardException
        Insert rows while we keep getting duplicates from the merge run whose scan is in the open scan array entry indexed by scanindex.
        Throws:
        StandardException