CompactibleFileStreamLog
is the extension of the HDFSMetadataLog contract for compactible metadata logs that compactLogs every defaultCompactInterval.
Method | Description |
---|---|
|
|
|
defaultCompactInterval: Int Used when…FIXME |
|
fileCleanupDelayMs: Long Used when…FIXME |
|
isDeletingExpiredLog: Boolean Used when…FIXME |
CompactibleFileStreamLog | Description |
---|---|
CompactibleFileStreamLog
uses spark.sql.streaming.minBatchesToRetain configuration property for…FIXME
CompactibleFileStreamLog
takes the following to be created:
Note
|
CompactibleFileStreamLog is a Scala abstract class and cannot be created directly. It is created indirectly for the concrete CompactibleFileStreamLogs.
|
batchIdToPath(batchId: Long): Path
Note
|
batchIdToPath is part of the HDFSMetadataLog Contract to…FIXME.
|
batchIdToPath
…FIXME
pathToBatchId(path: Path): Long
Note
|
pathToBatchId is part of the HDFSMetadataLog Contract to…FIXME.
|
pathToBatchId
…FIXME
isBatchFile(path: Path): Boolean
Note
|
isBatchFile is part of the HDFSMetadataLog Contract to…FIXME.
|
isBatchFile
…FIXME
serialize(logData: Array[T], out: OutputStream): Unit
Note
|
serialize is part of the HDFSMetadataLog Contract to…FIXME.
|
serialize
…FIXME
deserialize(in: InputStream): Array[T]
Note
|
deserialize is part of the HDFSMetadataLog Contract to…FIXME.
|
deserialize
…FIXME
add(batchId: Long, logs: Array[T]): Boolean
Note
|
add is part of the HDFSMetadataLog Contract to store metadata for a batch.
|
add
…FIXME
compact(batchId: Long, logs: Array[T]): Boolean
compact
…FIXME
Note
|
compact is used exclusively when CompactibleFileStreamLog is requested to add.
|
deleteExpiredLog(currentBatchId: Long): Unit
deleteExpiredLog
…FIXME
Note
|
deleteExpiredLog is used exclusively when CompactibleFileStreamLog is requested to store metadata for a batch.
|
getValidBatchesBeforeCompactionBatch(
compactionBatchId: Long,
compactInterval: Int): Seq[Long]
getValidBatchesBeforeCompactionBatch
…FIXME
Note
|
getValidBatchesBeforeCompactionBatch is used when…FIXME
|
isCompactionBatch(batchId: Long, compactInterval: Int): Boolean
isCompactionBatch
…FIXME
Note
|
|