Codota Logo
StreamExecutionEnvironment.getStateBackend
Code IndexAdd Codota 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)

  • Common ways to obtain StreamExecutionEnvironment
private void myMethod () {
StreamExecutionEnvironment s =
  • Codota IconStreamExecutionEnvironment.getExecutionEnvironment()
  • Codota IconStreamExecutionEnvironment.createLocalEnvironment()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
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