Java Code Examples for org.apache.flink.contrib.streaming.state.RocksDBKeyedStateBackend#compactState()
The following examples show how to use
org.apache.flink.contrib.streaming.state.RocksDBKeyedStateBackend#compactState() .
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: RocksDBTtlStateTestBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private void setTimeAndCompact(StateDescriptor<?, ?> stateDesc, long ts) throws RocksDBException { @SuppressWarnings("resource") RocksDBKeyedStateBackend<String> keyedBackend = sbetc.getKeyedStateBackend(); timeProvider.time = ts; keyedBackend.compactState(stateDesc); }
Example 2
Source File: RocksDBTtlStateTestBase.java From flink with Apache License 2.0 | 4 votes |
private void setTimeAndCompact(StateDescriptor<?, ?> stateDesc, long ts) throws RocksDBException { @SuppressWarnings("resource") RocksDBKeyedStateBackend<String> keyedBackend = sbetc.getKeyedStateBackend(); timeProvider.time = ts; keyedBackend.compactState(stateDesc); }
Example 3
Source File: StateBackendBenchmarkUtils.java From flink with Apache License 2.0 | 4 votes |
public static <K, S extends State, T> void compactState( RocksDBKeyedStateBackend<K> backend, StateDescriptor<S, T> stateDescriptor) throws RocksDBException { backend.compactState(stateDescriptor); }
Example 4
Source File: RocksDBTtlStateTestBase.java From flink with Apache License 2.0 | 4 votes |
private void setTimeAndCompact(StateDescriptor<?, ?> stateDesc, long ts) throws RocksDBException { @SuppressWarnings("resource") RocksDBKeyedStateBackend<String> keyedBackend = sbetc.getKeyedStateBackend(); timeProvider.time = ts; keyedBackend.compactState(stateDesc); }