- All Implemented Interfaces:
- Iterator<Map<Key,Value>>
public class TabletIterator
extends Object
implements Iterator<Map<Key,Value>>
This class iterates over the metadata table returning all key values for a tablet in one chunk. As it scans the metadata table it checks the correctness of
the metadata table, and rescans if needed. So the tablet key/values returned by this iterator should satisfy the sorted linked list property of the metadata
table.
The purpose of this is to hide inconsistencies caused by splits and detect anomalies in the metadata table.
If a tablet that was returned by this iterator is subsequently deleted from the metadata table, then this iterator will throw a TabletDeletedException. This
could occur when a table is merged.