org.apache.flink.streaming.api.operators.StreamTaskStateInitializerImpl Java Examples
The following examples show how to use
org.apache.flink.streaming.api.operators.StreamTaskStateInitializerImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KeyedStateInputFormat.java From flink with Apache License 2.0 | 6 votes |
private StreamOperatorStateContext getStreamOperatorStateContext(Environment environment) throws IOException { StreamTaskStateInitializer initializer = new StreamTaskStateInitializerImpl( environment, stateBackend, new NeverFireProcessingTimeService()); try { return initializer.streamOperatorStateContext( operatorState.getOperatorID(), operatorState.getOperatorID().toString(), this, keySerializer, registry, getRuntimeContext().getMetricGroup()); } catch (Exception e) { throw new IOException("Failed to restore state backend", e); } }
Example #2
Source File: KeyedStateInputFormat.java From flink with Apache License 2.0 | 6 votes |
private StreamOperatorStateContext getStreamOperatorStateContext(Environment environment) throws IOException { StreamTaskStateInitializer initializer = new StreamTaskStateInitializerImpl( environment, stateBackend); try { return initializer.streamOperatorStateContext( operatorState.getOperatorID(), operatorState.getOperatorID().toString(), new NeverFireProcessingTimeService(), operator, operator.getKeyType().createSerializer(environment.getExecutionConfig()), registry, getRuntimeContext().getMetricGroup()); } catch (Exception e) { throw new IOException("Failed to restore state backend", e); } }
Example #3
Source File: MockStreamTaskBuilder.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
public MockStreamTaskBuilder(Environment environment) throws Exception { this.environment = environment; StateBackend stateBackend = new MemoryStateBackend(); this.checkpointStorage = stateBackend.createCheckpointStorage(new JobID()); this.streamTaskStateInitializer = new StreamTaskStateInitializerImpl(environment, stateBackend, processingTimeService); }
Example #4
Source File: AbstractStreamOperatorTestHarness.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
protected StreamTaskStateInitializer createStreamTaskStateManager( Environment env, StateBackend stateBackend, ProcessingTimeService processingTimeService) { return new StreamTaskStateInitializerImpl( env, stateBackend, processingTimeService); }
Example #5
Source File: MockStreamTaskBuilder.java From flink with Apache License 2.0 | 5 votes |
public MockStreamTaskBuilder(Environment environment) throws Exception { this.environment = environment; StateBackend stateBackend = new MemoryStateBackend(); this.checkpointStorage = stateBackend.createCheckpointStorage(new JobID()); this.streamTaskStateInitializer = new StreamTaskStateInitializerImpl(environment, stateBackend, processingTimeService); }
Example #6
Source File: AbstractStreamOperatorTestHarness.java From flink with Apache License 2.0 | 5 votes |
protected StreamTaskStateInitializer createStreamTaskStateManager( Environment env, StateBackend stateBackend, ProcessingTimeService processingTimeService) { return new StreamTaskStateInitializerImpl( env, stateBackend, processingTimeService); }
Example #7
Source File: MockStreamTaskBuilder.java From flink with Apache License 2.0 | 5 votes |
public MockStreamTaskBuilder(Environment environment) throws Exception { this.environment = environment; this.config = new StreamConfig(environment.getTaskConfiguration()); StateBackend stateBackend = new MemoryStateBackend(); this.checkpointStorage = stateBackend.createCheckpointStorage(new JobID()); this.streamTaskStateInitializer = new StreamTaskStateInitializerImpl(environment, stateBackend); }
Example #8
Source File: AbstractStreamOperatorTestHarness.java From flink with Apache License 2.0 | 5 votes |
protected StreamTaskStateInitializer createStreamTaskStateManager( Environment env, StateBackend stateBackend, TtlTimeProvider ttlTimeProvider) { return new StreamTaskStateInitializerImpl( env, stateBackend, ttlTimeProvider); }
Example #9
Source File: StreamTask.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public StreamTaskStateInitializer createStreamTaskStateInitializer() { return new StreamTaskStateInitializerImpl( getEnvironment(), stateBackend, timerService); }
Example #10
Source File: StreamTask.java From flink with Apache License 2.0 | 4 votes |
public StreamTaskStateInitializer createStreamTaskStateInitializer() { return new StreamTaskStateInitializerImpl( getEnvironment(), stateBackend, timerService); }
Example #11
Source File: StreamTask.java From flink with Apache License 2.0 | 4 votes |
public StreamTaskStateInitializer createStreamTaskStateInitializer() { return new StreamTaskStateInitializerImpl( getEnvironment(), stateBackend); }