DefaultJdbcUnsplittableSnapshotWithCursorPartition

Default implementation of a JdbcPartition for an unsplittable snapshot partition preceding a cursor-based incremental sync.

Constructors

constructor(selectQueryGenerator: SelectQueryGenerator, streamState: DefaultJdbcStreamState, cursor: Field)

Properties

Link copied to clipboard
open override val completeState: OpaqueStateValue

State value to emit when the partition is read in its entirety.

Link copied to clipboard
Link copied to clipboard

Query which produces the current maximum cursor value in the stream.

Link copied to clipboard
val from: From
Link copied to clipboard
open override val nonResumableQuery: SelectQuery

Query which produces all records in the partition in no particular order.

Link copied to clipboard
Link copied to clipboard

The partition's stream's transient state, including parameters like fetchSize, etc.

Functions

Link copied to clipboard
open override fun samplingQuery(sampleRateInvPow2: Int): SelectQuery

Query which samples records in the partition at the rate of 2^-sampleRateInvPow2.

Link copied to clipboard