Tabnine Logo
StreamExecutionEnvironment.cast2StoppableSourceFunction
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now