public class EsSinkMetadataLog extends org.apache.spark.sql.execution.streaming.CompactibleFileStreamLog<EsSinkStatus>
EsSparkSqlStreamingSinkorg.apache.spark.internal.Logging.SparkShellLoggingFilter| Constructor and Description |
|---|
EsSinkMetadataLog(Settings settings,
SparkSession sparkSession,
String path) |
| Modifier and Type | Method and Description |
|---|---|
scala.collection.Seq<EsSinkStatus> |
compactLogs(scala.collection.Seq<EsSinkStatus> logs)
Compatibility requirement: Spark 3.0 and below used this method instead of shouldRetain.
|
protected int |
defaultCompactInterval() |
protected long |
fileCleanupDelayMs() |
protected boolean |
isDeletingExpiredLog() |
boolean |
shouldRetain(EsSinkStatus log,
long currentTime) |
static int |
VERSION_NUMBER() |
add, allFiles, batchIdToPath, COMPACT_FILE_SUFFIX, COMPACT_LATENCY_WARN_THRESHOLD_MS, compactInterval, deriveCompactInterval, deserialize, filterInBatch, foreachInBatch, getAllValidBatches, getBatchIdFromFileName, getValidBatchesBeforeCompactionBatch, isBatchFile, isCompactionBatch, minBatchesToRetain, nextCompactionBatchId, pathToBatchId, purge, serializeaddNewBatchByStream, applyFnToBatchByStream, applyFnToBatchByStream$default$2, batchCache, batchFilesFilter, fileManager, get, get, getLatest, getLatestBatchId, getOrderedBatchFiles, getPrevBatchFromStorage, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, listBatches, listBatchesOnDisk, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, metadataCacheEnabled, metadataPath, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, purgeAfter, validateVersion, verifyBatchIds, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$init$, initLock, uninitializepublic EsSinkMetadataLog(Settings settings, SparkSession sparkSession, String path)
public static int VERSION_NUMBER()
protected long fileCleanupDelayMs()
fileCleanupDelayMs in class org.apache.spark.sql.execution.streaming.CompactibleFileStreamLog<EsSinkStatus>protected boolean isDeletingExpiredLog()
isDeletingExpiredLog in class org.apache.spark.sql.execution.streaming.CompactibleFileStreamLog<EsSinkStatus>protected int defaultCompactInterval()
defaultCompactInterval in class org.apache.spark.sql.execution.streaming.CompactibleFileStreamLog<EsSinkStatus>public scala.collection.Seq<EsSinkStatus> compactLogs(scala.collection.Seq<EsSinkStatus> logs)
This method was renamed in 3.1 but can still be used in 3.0 as long as it is present at runtime.
logs - (undocumented)public boolean shouldRetain(EsSinkStatus log, long currentTime)
shouldRetain in class org.apache.spark.sql.execution.streaming.CompactibleFileStreamLog<EsSinkStatus>