Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.89 KB

spark-sql-streaming-OffsetSeqMetadata.adoc

File metadata and controls

47 lines (31 loc) · 1.89 KB

OffsetSeqMetadata

OffsetSeqMetadata holds the metadata for the current values of the following:

  • Event-time watermark (in millis) that is used to bound the lateness of data that will processed

  • Current timestamp (in millis)

  • Streaming configuration with spark.sql.shuffle.partitions and spark.sql.streaming.stateStore.providerClass Spark properties

Note
OffsetSeqMetadata is used mainly when IncrementalExecution is created.

OffsetSeqMetadata considers some configuration properties as relevantSQLConfs:

relevantSQLConfs are used when OffsetSeqMetadata is created and is requested to setSessionConf.

Creating OffsetSeqMetadata — apply Factory Method

apply(
  batchWatermarkMs: Long,
  batchTimestampMs: Long,
  sessionConf: RuntimeConfig): OffsetSeqMetadata

apply…​FIXME

Note
apply is used when…​FIXME

setSessionConf Method

setSessionConf(metadata: OffsetSeqMetadata, sessionConf: RuntimeConfig): Unit

setSessionConf…​FIXME

Note
setSessionConf is used when…​FIXME