congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook extensions
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