public class SSESourceFunction<T> extends Object implements org.apache.flink.streaming.api.functions.source.SourceFunction<T>, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
SSESourceFunction source = new SSESourceFunction(endpoint, new SimpleStringSchema());
datastream = env.add_source(source);
datastream.print();
Constructor and Description |
---|
SSESourceFunction(String endpoint,
org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializer) |
SSESourceFunction(URI endpoint,
org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType() |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx) |
public SSESourceFunction(URI endpoint, org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializer)
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> ctx)
run
in interface org.apache.flink.streaming.api.functions.source.SourceFunction<T>
public void cancel()
cancel
in interface org.apache.flink.streaming.api.functions.source.SourceFunction<T>
Copyright © 2024. All rights reserved.