public class StateInitializationContextImpl extends Object implements StateInitializationContext
StateInitializationContext.| Constructor and Description |
|---|
StateInitializationContextImpl(boolean restored,
OperatorStateStore operatorStateStore,
KeyedStateStore keyedStateStore,
Collection<KeyedStateHandle> keyedStateHandles,
Collection<OperatorStateHandle> operatorStateHandles,
CloseableRegistry closableRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CloseableRegistry |
getClosableRegistry() |
KeyedStateStore |
getKeyedStateStore()
Returns an interface that allows for registering keyed state with the backend.
|
Collection<KeyGroupsStateHandle> |
getKeyGroupsStateHandles() |
Collection<OperatorStateHandle> |
getOperatorStateHandles() |
OperatorStateStore |
getOperatorStateStore()
Returns an interface that allows for registering operator state with the backend.
|
Iterable<KeyGroupStatePartitionStreamProvider> |
getRawKeyedStateInputs()
Returns an iterable to obtain input streams for previously stored keyed state partitions that are assigned to
this operator.
|
Iterable<StatePartitionStreamProvider> |
getRawOperatorStateInputs()
Returns an iterable to obtain input streams for previously stored operator state partitions that are assigned to
this operator.
|
boolean |
isRestored()
Returns true, if state was restored from the snapshot of a previous execution.
|
public StateInitializationContextImpl(boolean restored,
OperatorStateStore operatorStateStore,
KeyedStateStore keyedStateStore,
Collection<KeyedStateHandle> keyedStateHandles,
Collection<OperatorStateHandle> operatorStateHandles,
CloseableRegistry closableRegistry)
public boolean isRestored()
ManagedInitializationContextisRestored in interface ManagedInitializationContextpublic Collection<OperatorStateHandle> getOperatorStateHandles()
public Collection<KeyGroupsStateHandle> getKeyGroupsStateHandles()
public CloseableRegistry getClosableRegistry()
public Iterable<StatePartitionStreamProvider> getRawOperatorStateInputs()
StateInitializationContextgetRawOperatorStateInputs in interface StateInitializationContextpublic Iterable<KeyGroupStatePartitionStreamProvider> getRawKeyedStateInputs()
StateInitializationContextgetRawKeyedStateInputs in interface StateInitializationContextpublic OperatorStateStore getOperatorStateStore()
ManagedInitializationContextgetOperatorStateStore in interface ManagedInitializationContextpublic KeyedStateStore getKeyedStateStore()
ManagedInitializationContextgetKeyedStateStore in interface ManagedInitializationContextpublic void close()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.