Class GTPrivMapDataSource.PrivMapSearch

  • Enclosing class:
    GTPrivMapDataSource

    private static final class GTPrivMapDataSource.PrivMapSearch
    extends CollatedBaseSearch
    A SelectableScheme that makes searching on the 'priv_bit' column a lot less painless!
    • Constructor Detail

    • Method Detail

      • copy

        public SelectableScheme copy​(TableDataSource table,
                                     boolean immutable)
        Description copied from class: SelectableScheme
        Returns an exact copy of this scheme including any optimization information. The copied scheme is identical to the original but does not share any parts. Modifying any part of the copied scheme will have no effect on the original and vice versa.

        The newly copied scheme can be given a new table source. If 'immutable' is true, then the resultant scheme is an immutable version of the parent. An immutable version may share information with the copied version so can not be changed.

        NOTE: Even if the scheme maintains no state you should still be careful to ensure a fresh SelectableScheme object is returned here.

        Specified by:
        copy in class SelectableScheme
      • searchFirst

        protected int searchFirst​(TObject val)
        Description copied from class: CollatedBaseSearch
        Finds the position in the collated set of the first value in the column equal to the given value. If the value is not to be found in the column, it returns -(insert_position + 1).
        Specified by:
        searchFirst in class CollatedBaseSearch
      • searchLast

        protected int searchLast​(TObject val)
        Description copied from class: CollatedBaseSearch
        Finds the position in the collated set of the last value in the column equal to the given value. If the value is not to be found in the column, it returns -(insert_position + 1).
        Specified by:
        searchLast in class CollatedBaseSearch