|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.command.dml.OptimizerHints
public class OptimizerHints
Thread local hints for H2 query optimizer. All the ongoing queries in the current thread will run with respect to these hints, so if they are needed only for a single operation it is preferable to setup and drop them in try-finally block. Currently works only in embedded mode.
| Constructor Summary | |
|---|---|
OptimizerHints()
|
|
| Method Summary | |
|---|---|
static OptimizerHints |
get()
Get the current thread local hints or null if none. |
boolean |
getJoinReorderEnabled()
|
static void |
set(OptimizerHints hints)
Set thread local hints or null to drop any existing hints. |
void |
setJoinReorderEnabled(boolean joinReorderEnabled)
Set whether reordering of tables (or anything else in the FROM
clause) is enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptimizerHints()
| Method Detail |
|---|
public static void set(OptimizerHints hints)
null to drop any existing hints.
hints - the hintspublic static OptimizerHints get()
null if none.
public void setJoinReorderEnabled(boolean joinReorderEnabled)
FROM
clause) is enabled. By default is true.
joinReorderEnabled - Flag value.public boolean getJoinReorderEnabled()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||