@Internal
public class ArrowSourceFunction
extends org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<org.apache.flink.table.data.RowData>
implements org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>, org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
SourceFunction which takes the serialized arrow record batch data as input.| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> |
getProducedType() |
void |
initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) |
void |
open(org.apache.flink.configuration.Configuration parameters) |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.flink.table.data.RowData> ctx) |
void |
snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) |
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void close()
throws Exception
close in interface org.apache.flink.api.common.functions.RichFunctionclose in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context)
throws Exception
initializeState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionExceptionpublic void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context)
throws Exception
snapshotState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionExceptionpublic void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.flink.table.data.RowData> ctx)
throws Exception
run in interface org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.flink.table.data.RowData>Exceptionpublic void cancel()
cancel in interface org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.flink.table.data.RowData>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.