Class LinkingIterator
- java.lang.Object
-
- org.apache.accumulo.core.metadata.schema.LinkingIterator
-
- All Implemented Interfaces:
Iterator<TabletMetadata>
public class LinkingIterator extends Object implements Iterator<TabletMetadata>
Tablets for a table in the metadata table should form a linked list. This iterator detects when tablets do not form a linked list and backs up when this happens.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
TabletMetadata
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<TabletMetadata>
-
next
public TabletMetadata next()
- Specified by:
next
in interfaceIterator<TabletMetadata>
-
-