Search in sources :

Example 1 with TernaryBoolean

use of org.apache.flink.util.TernaryBoolean in project flink by apache.

the class StreamTask method createStateBackend.

// ------------------------------------------------------------------------
// State backend
// ------------------------------------------------------------------------
private StateBackend createStateBackend() throws Exception {
    final StateBackend fromApplication = configuration.getStateBackend(getUserCodeClassLoader());
    final TernaryBoolean isChangelogStateBackendEnableFromApplication = configuration.isChangelogStateBackendEnabled(getUserCodeClassLoader());
    return StateBackendLoader.fromApplicationOrConfigOrDefault(fromApplication, isChangelogStateBackendEnableFromApplication == null ? TernaryBoolean.UNDEFINED : isChangelogStateBackendEnableFromApplication, getEnvironment().getTaskManagerInfo().getConfiguration(), getUserCodeClassLoader(), LOG);
}
Also used : TernaryBoolean(org.apache.flink.util.TernaryBoolean) StateBackend(org.apache.flink.runtime.state.StateBackend)

Aggregations

StateBackend (org.apache.flink.runtime.state.StateBackend)1 TernaryBoolean (org.apache.flink.util.TernaryBoolean)1