MetadataLog
is the contract to store metadata.
package org.apache.spark.sql.execution.streaming
trait MetadataLog[T] {
def add(batchId: Long, metadata: T): Boolean
def get(batchId: Long): Option[T]
def get(startId: Option[Long], endId: Option[Long]): Array[(Long, T)]
def getLatest(): Option[(Long, T)]
def purge(thresholdBatchId: Long): Unit
}
Method | Description | ||
---|---|---|---|
Retrieves the latest-committed batch with the metadata if available from the metadata storage.
|
|||