public final class IndexHints extends Object
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
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
allowIndex(Index index)
Allow an index to be used.
|
static IndexHints |
createUseIndexHints(LinkedHashSet<String> allowedIndexes)
Create an index hint object.
|
Set<String> |
getAllowedIndexes() |
String |
toString() |
public static IndexHints createUseIndexHints(LinkedHashSet<String> allowedIndexes)
allowedIndexes - the set of allowed indexespublic boolean allowIndex(Index index)
index - the indexCopyright © 2022. All rights reserved.