-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gireesh Sreepathi <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
18 changes: 11 additions & 7 deletions
18
...c/main/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftState.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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
/* | ||
* Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.integrations.destination.redshift.typing_deduping | ||
|
||
import io.airbyte.integrations.base.destination.typing_deduping.migrators.MinimumDestinationState | ||
|
||
data class RedshiftState(val needsSoftReset: Boolean): MinimumDestinationState { | ||
override fun needsSoftReset(): Boolean { | ||
return needsSoftReset | ||
} | ||
data class RedshiftState(val needsSoftReset: Boolean) : MinimumDestinationState { | ||
override fun needsSoftReset(): Boolean { | ||
return needsSoftReset | ||
} | ||
|
||
override fun <T : MinimumDestinationState> withSoftReset(needsSoftReset: Boolean): T { | ||
return copy(needsSoftReset = needsSoftReset) as T | ||
} | ||
override fun <T : MinimumDestinationState> withSoftReset(needsSoftReset: Boolean): T { | ||
return copy(needsSoftReset = needsSoftReset) as T | ||
} | ||
} |