JdbcStreamState

Encapsulates database-specific transient state for a particular stream.

Implementations should be thread-safe.

Inheritors

Properties

Link copied to clipboard
abstract var cursorUpperBound: JsonNode?

Value to use as upper bound for the cursor column.

Link copied to clipboard
abstract var fetchSize: Int?

Value to use for JDBC fetchSize, if specified.

Link copied to clipboard
abstract val fetchSizeOrDefault: Int

Same as fetchSize, but falls back to a default value.

Link copied to clipboard
abstract val limit: Long

Value to use for the LIMIT clause in resumable reads, if applicable.

Link copied to clipboard
abstract val sharedState: A

The transient state shared by all partitions. Includes global resources.

Link copied to clipboard
open val stream: Stream

Convenience getter for the current Stream.

Link copied to clipboard

StreamFeedBootstrap instance passed to the JdbcPartitionsCreatorFactory instance which created this object.

Functions

Link copied to clipboard
abstract fun reset()

Resets the transient state to its initial setting.

Link copied to clipboard
abstract fun updateLimitState(fn: (LimitState) -> LimitState)

Adjusts the limit value up or down.