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
Modifier and Type | Method and Description |
---|---|
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 © 2020 JBoss by Red Hat. All rights reserved.