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.WithWriteBufferProvider
commitUser, 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, withInsertOnly
public 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 StoreSinkWrite
write
in class StoreSinkWriteImpl
Exception
@Nullable public SinkRecord write(InternalRow rowData, int bucket) throws Exception
write
in interface StoreSinkWrite
write
in class StoreSinkWriteImpl
Exception
public void compact(BinaryRow partition, int bucket, boolean fullCompaction) throws Exception
compact
in interface StoreSinkWrite
compact
in class StoreSinkWriteImpl
Exception
public List<Committable> prepareCommit(boolean waitCompaction, long checkpointId) throws IOException
prepareCommit
in interface StoreSinkWrite
prepareCommit
in class StoreSinkWriteImpl
IOException
public void snapshotState() throws Exception
snapshotState
in interface StoreSinkWrite
snapshotState
in class StoreSinkWriteImpl
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.