IndexHints

Contains the hints for which index to use for a specific table. Currently allows a list of "use indexes" to be specified.

Use the factory method IndexHints.createUseIndexHints(listOfIndexes) to limit the query planner to only use specific indexes when determining which index to use for a table

Methods
static IndexHints createUseIndexHints(LinkedHashSet allowedIndexes)
Create an index hint object.
static IndexHints createUseIndexHints(LinkedHashSet allowedIndexes)
Create an index hint object.
Parameters:
allowedIndexes - the set of allowed indexes
Returns:
the hint object
boolean allowIndex(Index index)
Allow an index to be used.
boolean allowIndex(Index index)
Allow an index to be used.
Parameters:
index - the index
Returns:
whether it was already allowed
Set getAllowedIndexes()
Set getAllowedIndexes()
String toString()
String toString()