Skip to content

Commit

Permalink
[FLINK-21206] Implement HeapKeyValueStateIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidwys committed Feb 22, 2021
1 parent d84e7ca commit 5010d2a
Show file tree
Hide file tree
Showing 3 changed files with 467 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

package org.apache.flink.runtime.state;

import java.io.IOException;

/**
* Iterator that over all key-value state entries in a {@link KeyedStateBackend}. For use during
* snapshotting.
Expand All @@ -31,7 +33,7 @@ public interface KeyValueStateIterator extends AutoCloseable {
* Advances the iterator. Should only be called if {@link #isValid()} returned true. Valid flag
* can only change after calling {@link #next()}.
*/
void next();
void next() throws IOException;

/** Returns the key-group for the current key. */
int keyGroup();
Expand Down
Loading

0 comments on commit 5010d2a

Please sign in to comment.