I - Type of the input recordpublic class AppendWriteFunction<I> extends AbstractStreamWriteFunction<I>
The function writes base files directly for each checkpoint, the file may roll over when it’s size hits the configured threshold.
StreamWriteOperatorCoordinator,
Serialized Formconfig, confirming, currentInstant, eventGateway, metaClient, taskID, writeClient, writeStatuses| Constructor and Description |
|---|
AppendWriteFunction(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType rowType)
Constructs an AppendWriteFunction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endInput()
End input action for batch source.
|
BulkInsertWriterHelper |
getWriterHelper() |
void |
processElement(I value,
org.apache.flink.streaming.api.functions.ProcessFunction.Context ctx,
org.apache.flink.util.Collector<Object> out) |
protected void |
sendBootstrapEvent() |
void |
snapshotState() |
handleOperatorEvent, initializeState, instantToWrite, isConfirming, lastPendingInstant, setOperatorEventGateway, snapshotStatepublic AppendWriteFunction(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType rowType)
config - The config optionspublic void snapshotState()
snapshotState in class AbstractStreamWriteFunction<I>public void processElement(I value, org.apache.flink.streaming.api.functions.ProcessFunction.Context ctx, org.apache.flink.util.Collector<Object> out) throws Exception
public void endInput()
endInput in interface org.apache.flink.streaming.api.operators.BoundedOneInputendInput in class AbstractStreamWriteFunction<I>protected void sendBootstrapEvent()
sendBootstrapEvent in class AbstractStreamWriteFunction<I>@VisibleForTesting public BulkInsertWriterHelper getWriterHelper()
Copyright © 2023 The Apache Software Foundation. All rights reserved.