DefaultJdbcStreamState

Default implementation of JdbcStreamState.

Constructors

Link copied to clipboard
constructor(sharedState: DefaultJdbcSharedState, streamFeedBootstrap: StreamFeedBootstrap)

Properties

Link copied to clipboard
open override var cursorUpperBound: JsonNode?

Value to use as upper bound for the cursor column.

Link copied to clipboard
open override var fetchSize: Int?

Value to use for JDBC fetchSize, if specified.

Link copied to clipboard
open override val fetchSizeOrDefault: Int

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

Link copied to clipboard
open override val limit: Long

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

Link copied to clipboard

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
open override fun reset()

Resets the transient state to its initial setting.

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

Adjusts the limit value up or down.