public class NebulaSourceFunction
extends org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<com.vesoft.nebula.client.storage.data.BaseTableRow>
RichParallelSourceFunction to get NebulaGraph vertex and edge.| Constructor and Description |
|---|
NebulaSourceFunction(NebulaStorageConnectionProvider storageConnectionProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close()
close nebula client
|
void |
open(org.apache.flink.configuration.Configuration parameters)
open nebula client
|
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<com.vesoft.nebula.client.storage.data.BaseTableRow> sourceContext)
execute scan nebula data
|
NebulaSourceFunction |
setExecutionOptions(ExecutionOptions executionOptions) |
public NebulaSourceFunction(NebulaStorageConnectionProvider storageConnectionProvider)
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 run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<com.vesoft.nebula.client.storage.data.BaseTableRow> sourceContext)
throws Exception
Exceptionpublic void cancel()
public NebulaSourceFunction setExecutionOptions(ExecutionOptions executionOptions)
Copyright © 2022. All rights reserved.