Package com.mckoi.database
Class GTPrivMapDataSource.PrivMapSearch
- java.lang.Object
-
- com.mckoi.database.SelectableScheme
-
- com.mckoi.database.CollatedBaseSearch
-
- com.mckoi.database.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!
-
-
Field Summary
-
Fields inherited from class com.mckoi.database.SelectableScheme
EMPTY_LIST, ONE_LIST
-
-
Constructor Summary
Constructors Constructor Description PrivMapSearch(TableDataSource table, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectableScheme
copy(TableDataSource table, boolean immutable)
Returns an exact copy of this scheme including any optimization information.protected int
searchFirst(TObject val)
Finds the position in the collated set of the first value in the column equal to the given value.protected int
searchLast(TObject val)
Finds the position in the collated set of the last value in the column equal to the given value.-
Methods inherited from class com.mckoi.database.CollatedBaseSearch
addRangeToSet, dispose, firstInCollationOrder, insert, lastInCollationOrder, readFrom, remove, selectAll, selectRange, selectRange, setSize, writeTo
-
Methods inherited from class com.mckoi.database.SelectableScheme
Debug, getCellContents, getColumn, getSubsetScheme, getSystem, getTable, internalOrderIndexSet, isImmutable, selectAllNonNull, selectBetween, selectEqual, selectFirst, selectGreater, selectGreaterOrEqual, selectLast, selectLess, selectLessOrEqual, selectNotEqual, selectNotFirst, selectNotLast, setImmutable, toString
-
-
-
-
Constructor Detail
-
PrivMapSearch
PrivMapSearch(TableDataSource table, int column)
-
-
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 classSelectableScheme
-
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 classCollatedBaseSearch
-
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 classCollatedBaseSearch
-
-