I - Type of the input recordpublic class BulkInsertWriteFunction<I> extends AbstractWriteFunction<I>
The function should only be used in operation type WriteOperationType.BULK_INSERT.
Note: The function task requires the input stream be shuffled by partition path.
StreamWriteOperatorCoordinator,
Serialized Form| Constructor and Description |
|---|
BulkInsertWriteFunction(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType rowType)
Constructs a StreamingSinkFunction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
endInput()
End input action for batch source.
|
void |
handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent event)
Handles the operator event sent by the coordinator.
|
protected String |
lastPendingInstant()
Returns the last pending instant time.
|
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
processElement(I value,
org.apache.flink.streaming.api.functions.ProcessFunction.Context ctx,
org.apache.flink.util.Collector<Object> out) |
void |
setOperatorEventGateway(org.apache.flink.runtime.operators.coordination.OperatorEventGateway operatorEventGateway)
Sets up the event gateway.
|
public BulkInsertWriteFunction(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType rowType)
config - The config optionspublic void open(org.apache.flink.configuration.Configuration parameters)
throws IOException
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionIOExceptionpublic void processElement(I value, org.apache.flink.streaming.api.functions.ProcessFunction.Context ctx, org.apache.flink.util.Collector<Object> out) throws IOException
processElement in class org.apache.flink.streaming.api.functions.ProcessFunction<I,Object>IOExceptionpublic void close()
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionpublic void endInput()
endInput in interface org.apache.flink.streaming.api.operators.BoundedOneInputendInput in class AbstractWriteFunction<I>public void handleOperatorEvent(org.apache.flink.runtime.operators.coordination.OperatorEvent event)
AbstractWriteFunctionhandleOperatorEvent in class AbstractWriteFunction<I>event - The eventpublic void setOperatorEventGateway(org.apache.flink.runtime.operators.coordination.OperatorEventGateway operatorEventGateway)
AbstractWriteFunctionsetOperatorEventGateway in class AbstractWriteFunction<I>protected String lastPendingInstant()
Copyright © 2023 The Apache Software Foundation. All rights reserved.