congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
StreamExecutionEnvironment.getStateBackend
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/flink

/**
 * Private constructor. The generator should only be invoked using {@link #generate}.
 */
private StreamGraphGenerator(StreamExecutionEnvironment env) {
  this.streamGraph = new StreamGraph(env);
  this.streamGraph.setChaining(env.isChainingEnabled());
  this.streamGraph.setStateBackend(env.getStateBackend());
  this.env = env;
  this.alreadyTransformed = new HashMap<>();
}
origin: apache/flink

  /**
   * Sets the state backend to a new {@link StubStateBackend} which has a {@link MonotonicTTLTimeProvider}.
   *
   * @param env The {@link StreamExecutionEnvironment} of the job.
   * @return The {@link MonotonicTTLTimeProvider}.
   */
  private static MonotonicTTLTimeProvider setBackendWithCustomTTLTimeProvider(StreamExecutionEnvironment env) {
    final MonotonicTTLTimeProvider ttlTimeProvider = new MonotonicTTLTimeProvider();

    final StateBackend configuredBackend = env.getStateBackend();
    final StateBackend stubBackend = new StubStateBackend(configuredBackend, ttlTimeProvider);
    env.setStateBackend(stubBackend);

    return ttlTimeProvider;
  }
}
origin: org.apache.flink/flink-streaming-java

/**
 * Private constructor. The generator should only be invoked using {@link #generate}.
 */
private StreamGraphGenerator(StreamExecutionEnvironment env) {
  this.streamGraph = new StreamGraph(env);
  this.streamGraph.setChaining(env.isChainingEnabled());
  this.streamGraph.setStateBackend(env.getStateBackend());
  this.env = env;
  this.alreadyTransformed = new HashMap<>();
}
origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Private constructor. The generator should only be invoked using {@link #generate}.
 */
private StreamGraphGenerator(StreamExecutionEnvironment env) {
  this.streamGraph = new StreamGraph(env);
  this.streamGraph.setChaining(env.isChainingEnabled());
  this.streamGraph.setStateBackend(env.getStateBackend());
  this.env = env;
  this.alreadyTransformed = new HashMap<>();
}
origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Private constructor. The generator should only be invoked using {@link #generate}.
 */
private StreamGraphGenerator(StreamExecutionEnvironment env) {
  this.streamGraph = new StreamGraph(env);
  this.streamGraph.setChaining(env.isChainingEnabled());
  this.streamGraph.setStateBackend(env.getStateBackend());
  this.env = env;
  this.alreadyTransformed = new HashMap<>();
}
org.apache.flink.streaming.api.environmentStreamExecutionEnvironmentgetStateBackend

Javadoc

Returns the state backend that defines how to store and checkpoint state.

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

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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