-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Xiaohan Song <xiaohan@airbyte.io>
- Loading branch information
1 parent
503e397
commit 7bd9423
Showing
18 changed files
with
911 additions
and
289 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
2 changes: 1 addition & 1 deletion
2
airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties
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 +1 @@ | ||
version=0.35.8 | ||
version=0.35.11 |
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
40 changes: 40 additions & 0 deletions
40
...yte/cdk/integrations/source/relationaldb/streamstatus/StreamStatusTraceEmitterIterator.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,40 @@ | ||
/* | ||
* Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.cdk.integrations.source.relationaldb.streamstatus | ||
|
||
import io.airbyte.cdk.integrations.base.AirbyteTraceMessageUtility.makeStreamStatusTraceAirbyteMessage | ||
import io.airbyte.commons.stream.AirbyteStreamStatusHolder | ||
import io.airbyte.commons.util.AutoCloseableIterator | ||
import io.airbyte.protocol.models.v0.AirbyteMessage | ||
import org.slf4j.Logger | ||
import org.slf4j.LoggerFactory | ||
|
||
class StreamStatusTraceEmitterIterator(private val statusHolder: AirbyteStreamStatusHolder) : | ||
AutoCloseableIterator<AirbyteMessage?> { | ||
private var emitted = false | ||
|
||
override fun hasNext(): Boolean { | ||
return !emitted | ||
} | ||
|
||
override fun next(): AirbyteMessage { | ||
emitted = true | ||
return makeStreamStatusTraceAirbyteMessage(statusHolder) | ||
} | ||
|
||
@Throws(Exception::class) | ||
override fun close() { | ||
// no-op | ||
} | ||
|
||
override fun remove() { | ||
// no-op | ||
} | ||
|
||
companion object { | ||
private val LOGGER: Logger = | ||
LoggerFactory.getLogger(StreamStatusTraceEmitterIterator::class.java) | ||
} | ||
} |
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
Oops, something went wrong.