Java Code Examples for org.apache.flink.runtime.state.IncrementalRemoteKeyedStateHandle#getPrivateState()

The following examples show how to use org.apache.flink.runtime.state.IncrementalRemoteKeyedStateHandle#getPrivateState() . 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: RocksDBStateDownloader.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
/**
 * Transfer all state data to the target directory using specified number of threads.
 *
 * @param restoreStateHandle Handles used to retrieve the state data.
 * @param dest The target directory which the state data will be stored.
 *
 * @throws Exception Thrown if can not transfer all the state data.
 */
public void transferAllStateDataToDirectory(
	IncrementalRemoteKeyedStateHandle restoreStateHandle,
	Path dest,
	CloseableRegistry closeableRegistry) throws Exception {

	final Map<StateHandleID, StreamStateHandle> sstFiles =
		restoreStateHandle.getSharedState();
	final Map<StateHandleID, StreamStateHandle> miscFiles =
		restoreStateHandle.getPrivateState();

	downloadDataForAllStateHandles(sstFiles, dest, closeableRegistry);
	downloadDataForAllStateHandles(miscFiles, dest, closeableRegistry);
}
 
Example 2
Source File: RocksDBStateDownloader.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Transfer all state data to the target directory using specified number of threads.
 *
 * @param restoreStateHandle Handles used to retrieve the state data.
 * @param dest The target directory which the state data will be stored.
 *
 * @throws Exception Thrown if can not transfer all the state data.
 */
public void transferAllStateDataToDirectory(
	IncrementalRemoteKeyedStateHandle restoreStateHandle,
	Path dest,
	CloseableRegistry closeableRegistry) throws Exception {

	final Map<StateHandleID, StreamStateHandle> sstFiles =
		restoreStateHandle.getSharedState();
	final Map<StateHandleID, StreamStateHandle> miscFiles =
		restoreStateHandle.getPrivateState();

	downloadDataForAllStateHandles(sstFiles, dest, closeableRegistry);
	downloadDataForAllStateHandles(miscFiles, dest, closeableRegistry);
}
 
Example 3
Source File: RocksDBStateDownloader.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Transfer all state data to the target directory using specified number of threads.
 *
 * @param restoreStateHandle Handles used to retrieve the state data.
 * @param dest The target directory which the state data will be stored.
 *
 * @throws Exception Thrown if can not transfer all the state data.
 */
public void transferAllStateDataToDirectory(
	IncrementalRemoteKeyedStateHandle restoreStateHandle,
	Path dest,
	CloseableRegistry closeableRegistry) throws Exception {

	final Map<StateHandleID, StreamStateHandle> sstFiles =
		restoreStateHandle.getSharedState();
	final Map<StateHandleID, StreamStateHandle> miscFiles =
		restoreStateHandle.getPrivateState();

	downloadDataForAllStateHandles(sstFiles, dest, closeableRegistry);
	downloadDataForAllStateHandles(miscFiles, dest, closeableRegistry);
}