Java Code Examples for org.apache.flink.runtime.state.internal.InternalKvState#StateIncrementalVisitor
The following examples show how to use
org.apache.flink.runtime.state.internal.InternalKvState#StateIncrementalVisitor .
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: CopyOnWriteSkipListStateMapBasicOpTest.java From flink with Apache License 2.0 | 6 votes |
/** * Test StateIncrementalVisitor with closed state map. */ @Test public void testStateIncrementalVisitorWithClosedStateMap() { CopyOnWriteSkipListStateMap<Integer, Long, String> stateMap = createEmptyStateMap(); // put some states for (long namespace = 0; namespace < 15; namespace++) { for (int key = 0; key < 20; key++) { String state = String.valueOf(namespace * key); stateMap.put(key, namespace, state); } } InternalKvState.StateIncrementalVisitor<Integer, Long, String> closedVisitor = stateMap.getStateIncrementalVisitor(5); assertTrue(closedVisitor.hasNext()); stateMap.close(); // the visitor will be invalid after state map is closed assertFalse(closedVisitor.hasNext()); }
Example 2
Source File: CopyOnWriteStateMap.java From flink with Apache License 2.0 | 4 votes |
@Override public InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords) { return new StateIncrementalVisitorImpl(recommendedMaxNumberOfReturnedRecords); }
Example 3
Source File: NestedStateMap.java From flink with Apache License 2.0 | 4 votes |
@Override public InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor( int recommendedMaxNumberOfReturnedRecords) { return new StateEntryVisitor(); }
Example 4
Source File: CopyOnWriteSkipListStateMap.java From flink with Apache License 2.0 | 4 votes |
@Override public InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords) { return new StateIncrementalVisitor(recommendedMaxNumberOfReturnedRecords); }
Example 5
Source File: CopyOnWriteStateMap.java From flink with Apache License 2.0 | 4 votes |
@Override public InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords) { return new StateIncrementalVisitorImpl(recommendedMaxNumberOfReturnedRecords); }
Example 6
Source File: NestedStateMap.java From flink with Apache License 2.0 | 4 votes |
@Override public InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor( int recommendedMaxNumberOfReturnedRecords) { return new StateEntryVisitor(); }
Example 7
Source File: StateMap.java From flink with Apache License 2.0 | votes |
public abstract InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords);
Example 8
Source File: StateMap.java From flink with Apache License 2.0 | votes |
public abstract InternalKvState.StateIncrementalVisitor<K, N, S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords);