abstract class FlinkStreamlet extends Streamlet[FlinkStreamletContext] with Serializable
The base class for defining Flink streamlets. Derived classes need to override createLogic
to
provide the custom implementation for the behavior of the streamlet.
Here's an example:
// new custom `FlinkStreamlet` class MyFlinkProcessor extends FlinkStreamlet { // Step 1: Define inlets and outlets. Note for the outlet you can specify // the partitioner function explicitly or else `RoundRobinPartitioner` // will be used val in = AvroInlet[Data]("in") val out = AvroOutlet[Simple]("out", _.name) // Step 2: Define the shape of the streamlet. In this example the streamlet // has 1 inlet and 1 outlet val shape = StreamletShape(in, out) // Step 3: Provide custom implementation of `FlinkStreamletLogic` that defines // the behavior of the streamlet override def createLogic() = new FlinkStreamletLogic { override def executeStreamingQueries = { val outStream: DataStream[Simple] = writeStream( readStream(in).map(r => Simple(r.name)), out ) executionEnv.execute() } } }
- Alphabetic
- By Inheritance
- FlinkStreamlet
- Serializable
- Serializable
- Streamlet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FlinkStreamlet()
Abstract Value Members
-
abstract
def
createLogic(): FlinkStreamletLogic
- Attributes
- protected
-
abstract
def
shape(): StreamletShape
- Definition Classes
- Streamlet
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attributes: Set[StreamletAttribute]
- Attributes
- protected[cloudflow]
- Definition Classes
- Streamlet
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
configParameters: IndexedSeq[ConfigParameter]
- Definition Classes
- Streamlet
- final def configuredValue(context: FlinkStreamletContext, configKey: String): String
-
implicit final
def
context: FlinkStreamletContext
- Attributes
- protected
- Definition Classes
- Streamlet
-
final
def
createContext(config: Config): FlinkStreamletContext
- Attributes
- protected
- Definition Classes
- FlinkStreamlet → Streamlet
-
def
createStreamExecutionEnvironment(config: Config, streamlet: String): StreamExecutionEnvironment
Creates the Flink StreamExecutionEnvironment and by default sets up exactly-once checkpointing.
Creates the Flink StreamExecutionEnvironment and by default sets up exactly-once checkpointing.
- Attributes
- protected
- See also
setupExecutionEnvironment to modify the StreamExecutionEnvironment that is created by this method.
-
def
customAttributes: Set[StreamletAttribute]
- Definition Classes
- Streamlet
-
def
defineConfigParameters(): Array[ConfigParameter]
- Definition Classes
- Streamlet
-
def
defineCustomAttributes(): Array[StreamletAttribute]
- Definition Classes
- Streamlet
-
def
defineVolumeMounts(): Array[VolumeMount]
- Definition Classes
- Streamlet
-
def
description: String
- Definition Classes
- Streamlet
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
getContext(): FlinkStreamletContext
- Attributes
- protected
- Definition Classes
- Streamlet
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
inlets: IndexedSeq[Inlet]
- Definition Classes
- Streamlet
-
def
isDefaultCheckpointingEnabled(config: Config, streamlet: String): Boolean
This checks whether the user, through configuration, has disabled checkpointing by setting flink.execution.checkpointing.interval value to less then 0
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
jsonDescriptor: String
- Definition Classes
- Streamlet
-
def
labels: IndexedSeq[String]
- Definition Classes
- Streamlet
-
lazy val
log: Logger
- Attributes
- protected
- Definition Classes
- Streamlet
- Annotations
- @transient()
-
def
logStartRunnerMessage(buildInfo: String): Unit
- Definition Classes
- FlinkStreamlet → Streamlet
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
outlets: IndexedSeq[Outlet]
- Definition Classes
- Streamlet
-
final
def
run(context: FlinkStreamletContext): StreamletExecution
- Definition Classes
- FlinkStreamlet → Streamlet
-
final
val
runtime: FlinkStreamletRuntime.type
- Definition Classes
- FlinkStreamlet → Streamlet
- def setDefaultCheckpointing(env: StreamExecutionEnvironment): CheckpointConfig
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateStreamExecutionEnvironment(env: StreamExecutionEnvironment): StreamExecutionEnvironment
Override this method to modify the org.apache.flink.streaming.api.scala.StreamExecutionEnvironment used in this FlinkStreamlet.
Override this method to modify the org.apache.flink.streaming.api.scala.StreamExecutionEnvironment used in this FlinkStreamlet. By default this method does not modify the StreamExecutionEnvironment.
-
def
volumeMounts: IndexedSeq[VolumeMount]
- Definition Classes
- Streamlet
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated