public class GlobalFullCompactionSinkWrite extends StoreSinkWriteImpl
StoreSinkWrite for execute full compaction globally. All writers will be full compaction
at the same time (in the specified checkpoint).StoreSinkWrite.Provider, StoreSinkWrite.WithWriteBufferProvidercommitUser, state, write| Constructor and Description |
|---|
GlobalFullCompactionSinkWrite(FileStoreTable table,
String commitUser,
StoreSinkWriteState state,
org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager,
boolean ignorePreviousFiles,
boolean waitCompaction,
int deltaCommits,
boolean isStreaming,
MemorySegmentPool memoryPool,
org.apache.flink.metrics.MetricGroup metricGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
compact(BinaryRow partition,
int bucket,
boolean fullCompaction) |
List<Committable> |
prepareCommit(boolean waitCompaction,
long checkpointId) |
void |
snapshotState() |
SinkRecord |
write(InternalRow rowData) |
SinkRecord |
write(InternalRow rowData,
int bucket) |
close, getWrite, notifyNewFiles, replace, streamingMode, toLogRecord, withCompactExecutor, withInsertOnlypublic GlobalFullCompactionSinkWrite(FileStoreTable table, String commitUser, StoreSinkWriteState state, org.apache.flink.runtime.io.disk.iomanager.IOManager ioManager, boolean ignorePreviousFiles, boolean waitCompaction, int deltaCommits, boolean isStreaming, @Nullable MemorySegmentPool memoryPool, org.apache.flink.metrics.MetricGroup metricGroup)
@Nullable public SinkRecord write(InternalRow rowData) throws Exception
write in interface StoreSinkWritewrite in class StoreSinkWriteImplException@Nullable public SinkRecord write(InternalRow rowData, int bucket) throws Exception
write in interface StoreSinkWritewrite in class StoreSinkWriteImplExceptionpublic void compact(BinaryRow partition, int bucket, boolean fullCompaction) throws Exception
compact in interface StoreSinkWritecompact in class StoreSinkWriteImplExceptionpublic List<Committable> prepareCommit(boolean waitCompaction, long checkpointId) throws IOException
prepareCommit in interface StoreSinkWriteprepareCommit in class StoreSinkWriteImplIOExceptionpublic void snapshotState()
throws Exception
snapshotState in interface StoreSinkWritesnapshotState in class StoreSinkWriteImplExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.