Codota Logo
StreamExecutionEnvironment.cast2StoppableSourceFunction
Code IndexAdd Codota to your IDE (free)

How to use
cast2StoppableSourceFunction
method
in
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment

Best Java code snippets using org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.cast2StoppableSourceFunction (Showing top 5 results out of 315)

  • Common ways to obtain StreamExecutionEnvironment
private void myMethod () {
StreamExecutionEnvironment s =
  • Codota IconStreamExecutionEnvironment.getExecutionEnvironment()
  • Codota IconStreamExecutionEnvironment.createLocalEnvironment()
  • Smart code suggestions by Codota
}
origin: apache/flink

StreamSource<OUT, ?> sourceOperator;
if (function instanceof StoppableFunction) {
  sourceOperator = new StoppableStreamSource<>(cast2StoppableSourceFunction(function));
} else {
  sourceOperator = new StreamSource<>(function);
origin: org.apache.flink/flink-streaming-java

StreamSource<OUT, ?> sourceOperator;
if (function instanceof StoppableFunction) {
  sourceOperator = new StoppableStreamSource<>(cast2StoppableSourceFunction(function));
} else {
  sourceOperator = new StreamSource<>(function);
origin: DTStack/flinkx

StreamSource<OUT, ?> sourceOperator;
if (function instanceof StoppableFunction) {
  sourceOperator = new StoppableStreamSource<>(cast2StoppableSourceFunction(function));
} else {
  sourceOperator = new StreamSource<>(function);
origin: org.apache.flink/flink-streaming-java_2.11

StreamSource<OUT, ?> sourceOperator;
if (function instanceof StoppableFunction) {
  sourceOperator = new StoppableStreamSource<>(cast2StoppableSourceFunction(function));
} else {
  sourceOperator = new StreamSource<>(function);
origin: org.apache.flink/flink-streaming-java_2.10

StreamSource<OUT, ?> sourceOperator;
if (function instanceof StoppableFunction) {
  sourceOperator = new StoppableStreamSource<>(cast2StoppableSourceFunction(function));
} else {
  sourceOperator = new StreamSource<>(function);
org.apache.flink.streaming.api.environmentStreamExecutionEnvironmentcast2StoppableSourceFunction

Javadoc

Casts the source function into a SourceFunction implementing the StoppableFunction.

This method should only be used if the source function was checked to implement the StoppableFunction interface.

Popular methods of StreamExecutionEnvironment

  • execute
  • getExecutionEnvironment
    Creates an execution environment that represents the context in which the program is currently execu
  • addSource
    Ads a data source with a custom type information thus opening a DataStream. Only in very special cas
  • getConfig
    Gets the config object.
  • enableCheckpointing
    Enables checkpointing for the streaming job. The distributed state of the streaming dataflow will be
  • setStreamTimeCharacteristic
    Sets the time characteristic for all streams create from this environment, e.g., processing time, ev
  • setParallelism
    Sets the parallelism for operations executed through this environment. Setting a parallelism of x he
  • fromElements
    Creates a new data stream that contains the given elements. The elements must all be of the same typ
  • setStateBackend
    Sets the state backend that describes how to store and checkpoint operator state. It defines both wh
  • createLocalEnvironment
    Creates a LocalStreamEnvironment. The local execution environment will run the program in a multi-th
  • fromCollection
    Creates a data stream from the given iterator.Because the iterator will remain unmodified until the
  • getCheckpointConfig
    Gets the checkpoint config, which defines values like checkpoint interval, delay between checkpoints
  • fromCollection,
  • getCheckpointConfig,
  • getParallelism,
  • getStreamGraph,
  • setRestartStrategy,
  • socketTextStream,
  • readTextFile,
  • generateSequence,
  • clean,
  • getStreamTimeCharacteristic

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now