Class KeyRangeIntersectionIterator

All Implemented Interfaces:
com.google.common.collect.PeekingIterator<PrimaryKey>, Closeable, AutoCloseable, Iterator<PrimaryKey>

public class KeyRangeIntersectionIterator extends KeyRangeIterator
A simple intersection iterator that makes no real attempts at optimising the iteration apart from initially sorting the ranges. This implementation also supports an intersection limit via CassandraRelevantProperties.SAI_INTERSECTION_CLAUSE_LIMIT which limits the number of ranges that will be included in the intersection. This currently defaults to 2.

Intersection only works for ranges that are compatible according to PrimaryKey.Kind.isIntersectable(Kind).