T
- The input type consumed by the source.public final class SourceFunctionSpec<T> extends java.lang.Object implements IngressSpec<T>, java.io.Serializable
IngressSpec
that can run any Apache Flink SourceFunction
.Constructor and Description |
---|
SourceFunctionSpec(IngressIdentifier<T> id,
org.apache.flink.streaming.api.functions.source.SourceFunction<T> delegate) |
Modifier and Type | Method and Description |
---|---|
IngressIdentifier<T> |
id()
Returns the unique identifier of the ingress.
|
IngressType |
type()
Returns the type of the ingress.
|
public SourceFunctionSpec(IngressIdentifier<T> id, org.apache.flink.streaming.api.functions.source.SourceFunction<T> delegate)
id
- A unique ingress identifier.delegate
- The underlying source function that this spec will delegate to at runtime.public final IngressIdentifier<T> id()
IngressSpec
id
in interface IngressSpec<T>
public final IngressType type()
IngressSpec
type
in interface IngressSpec<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.