Class B2IMaxScan

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

    public class B2IMaxScan
    extends BTreeMaxScan
    Scan used to find maximum value in the secondary index. This class implements an optimized interface to find the maximum row, for a set of rows between an input start and stop key. Note most work of this class is inherited from the generic btree implementation. This class initializes the top level object and deals with locking information specific to a secondary index implementation of a btree.
    • Constructor Detail

      • B2IMaxScan

        B2IMaxScan()
    • Method Detail

      • closeForEndTransaction

        public boolean closeForEndTransaction​(boolean closeHeldScan)
                                       throws StandardException
        Close the scan, a commit or abort is about to happen.
        Specified by:
        closeForEndTransaction in interface ScanManager
        Overrides:
        closeForEndTransaction in class BTreeScan
        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.
        Throws:
        StandardException - Standard exception policy.
      • init

        public void init​(TransactionManager xact_manager,
                         Transaction rawtran,
                         int open_mode,
                         int lock_level,
                         LockingPolicy locking_policy,
                         int isolation_level,
                         boolean open_for_locking,
                         FormatableBitSet scanColumnList,
                         B2I conglomerate,
                         B2IUndo undo)
                  throws StandardException
        Initialize the scan for use.

        Any changes to this method may have to be reflected in close as well.

        The btree init opens the container (super.init), and stores away the state of the qualifiers. The actual searching for the first position is delayed until the first next() call.

        Throws:
        StandardException - Standard exception policy.