Search in sources :

Example 1 with RocksQueueIterator

use of org.apache.flink.contrib.streaming.state.iterator.RocksQueueIterator in project flink by apache.

the class RocksDBFullSnapshotResources method createHeapPriorityQueueIterators.

private List<SingleStateIterator> createHeapPriorityQueueIterators() {
    int kvStateId = metaData.size();
    List<SingleStateIterator> queuesIterators = new ArrayList<>(heapPriorityQueuesSnapshots.size());
    for (HeapPriorityQueueStateSnapshot<?> queuesSnapshot : heapPriorityQueuesSnapshots) {
        queuesIterators.add(new RocksQueueIterator(queuesSnapshot, keyGroupRange, keyGroupPrefixBytes, kvStateId++));
    }
    return queuesIterators;
}
Also used : SingleStateIterator(org.apache.flink.contrib.streaming.state.iterator.SingleStateIterator) ArrayList(java.util.ArrayList) RocksQueueIterator(org.apache.flink.contrib.streaming.state.iterator.RocksQueueIterator)

Aggregations

ArrayList (java.util.ArrayList)1 RocksQueueIterator (org.apache.flink.contrib.streaming.state.iterator.RocksQueueIterator)1 SingleStateIterator (org.apache.flink.contrib.streaming.state.iterator.SingleStateIterator)1