DefaultJdbcSplittableSnapshotWithCursorPartition

class DefaultJdbcSplittableSnapshotWithCursorPartition(val selectQueryGenerator: SelectQueryGenerator, val streamState: DefaultJdbcStreamState, primaryKey: List<Field>, val lowerBound: List<JsonNode>?, val upperBound: List<JsonNode>?, val cursor: Field, cursorUpperBound: JsonNode?) : DefaultJdbcCursorPartition

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

Constructors

constructor(selectQueryGenerator: SelectQueryGenerator, streamState: DefaultJdbcStreamState, primaryKey: List<Field>, lowerBound: List<JsonNode>?, upperBound: List<JsonNode>?, cursor: Field, cursorUpperBound: JsonNode?)

Properties

Link copied to clipboard
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
val cursorUpperBound: JsonNode
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 val isLowerBoundIncluded: Boolean = false
Link copied to clipboard
open override val lowerBound: List<JsonNode>?
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.

Link copied to clipboard
open override val upperBound: List<JsonNode>?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun incompleteState(lastRecord: ObjectNode): OpaqueStateValue

State value to emit when the partition is read up to (and including) lastRecord.

Link copied to clipboard
open override fun resumableQuery(limit: Long): SelectQuery

Query which produces a subset of records at the beginning of the partition.

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