public class BucketUnawareCompactSource extends AbstractNonCoordinatedSource<UnawareAppendCompactionTask>
Note: The function is the source of unaware-bucket compactor coordinator. It will read the latest snapshot continuously by compactionCoordinator, and generate new compaction tasks. The source is used in unaware-bucket compaction job (both stand-alone and write-combined). Besides, we don't need to save state in this source, it will invoke a full scan when starting up, and scan continuously for the following snapshot.
Modifier and Type | Class and Description |
---|---|
static class |
BucketUnawareCompactSource.BucketUnawareCompactSourceReader
BucketUnawareCompactSourceReader.
|
Constructor and Description |
---|
BucketUnawareCompactSource(FileStoreTable table,
boolean isStreaming,
long scanInterval,
Predicate filter) |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.api.datastream.DataStreamSource<UnawareAppendCompactionTask> |
buildSource(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
BucketUnawareCompactSource source,
String tableIdentifier) |
org.apache.flink.api.connector.source.SourceReader<UnawareAppendCompactionTask,SimpleSourceSplit> |
createReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext) |
org.apache.flink.api.connector.source.Boundedness |
getBoundedness() |
createEnumerator, getEnumeratorCheckpointSerializer, getSplitSerializer, restoreEnumerator
public BucketUnawareCompactSource(FileStoreTable table, boolean isStreaming, long scanInterval, @Nullable Predicate filter)
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
public org.apache.flink.api.connector.source.SourceReader<UnawareAppendCompactionTask,SimpleSourceSplit> createReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext) throws Exception
Exception
public static org.apache.flink.streaming.api.datastream.DataStreamSource<UnawareAppendCompactionTask> buildSource(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, BucketUnawareCompactSource source, String tableIdentifier)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.