-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from ergon/feature/dope-234-use-hash
DOPE-234: added join hints, added CM extension for use keys hint, added tests
- Loading branch information
Showing
13 changed files
with
925 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
core/src/main/kotlin/ch/ergon/dope/resolvable/clause/model/joinHint/HashOrNestedLoopHint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package ch.ergon.dope.resolvable.clause.model.joinHint | ||
|
||
import ch.ergon.dope.DopeQuery | ||
import ch.ergon.dope.DopeQueryManager | ||
import ch.ergon.dope.resolvable.Resolvable | ||
|
||
enum class HashOrNestedLoopHint : Resolvable { | ||
HASH_BUILD { | ||
override fun toDopeQuery(manager: DopeQueryManager) = DopeQuery( | ||
"HASH (BUILD)", | ||
emptyMap(), | ||
) | ||
}, | ||
HASH_PROBE { | ||
override fun toDopeQuery(manager: DopeQueryManager) = DopeQuery( | ||
"HASH (PROBE)", | ||
emptyMap(), | ||
) | ||
}, | ||
NESTED_LOOP { | ||
override fun toDopeQuery(manager: DopeQueryManager) = DopeQuery( | ||
"NL", | ||
emptyMap(), | ||
) | ||
}, | ||
} |
Oops, something went wrong.