Package org.apache.accumulo.tserver.log
Class RecoveryLogsIterator
- java.lang.Object
-
- org.apache.accumulo.tserver.log.RecoveryLogsIterator
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<Map.Entry<LogFileKey,LogFileValue>>
,CloseableIterator<Map.Entry<LogFileKey,LogFileValue>>
public class RecoveryLogsIterator extends Object implements CloseableIterator<Map.Entry<LogFileKey,LogFileValue>>
Iterates over multiple sorted recovery logs merging them into a single sorted stream.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
Map.Entry<LogFileKey,LogFileValue>
next()
void
remove()
-
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<Map.Entry<LogFileKey,LogFileValue>>
-
next
public Map.Entry<LogFileKey,LogFileValue> next()
- Specified by:
next
in interfaceIterator<Map.Entry<LogFileKey,LogFileValue>>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<Map.Entry<LogFileKey,LogFileValue>>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIterator<Map.Entry<LogFileKey,LogFileValue>>
-
-