-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
163 additions
and
64 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
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
11 changes: 11 additions & 0 deletions
11
...irbyte/integrations/base/destination/typing_deduping/migrators/MinimumDestinationState.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,11 @@ | ||
package io.airbyte.integrations.base.destination.typing_deduping.migrators | ||
|
||
/** | ||
* The type parameter should be the subclass itself. For example, | ||
* `data class MyState(...) : MinimumDestinationState<MyState>`. | ||
* We need this so that [withSoftReset] can return the correct type. | ||
*/ | ||
interface MinimumDestinationState<T: MinimumDestinationState<T>> { | ||
fun needsSoftReset(): Boolean | ||
fun withSoftReset(needsSoftReset: Boolean): T | ||
} |
Oops, something went wrong.