Class AbstractDatanodeStore.KeyValueBlockLocalIdIterator
java.lang.Object
org.apache.hadoop.ozone.container.metadata.AbstractDatanodeStore.KeyValueBlockLocalIdIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,BlockIterator<Long>
- Enclosing class:
AbstractDatanodeStore
@Public
public static class AbstractDatanodeStore.KeyValueBlockLocalIdIterator
extends Object
implements BlockIterator<Long>, Closeable
Block localId Iterator for KeyValue Container.
This Block localId iterator returns localIds
which match with the
MetadataKeyFilters.KeyPrefixFilter.-
Method Details
-
nextBlock
This method returns blocks matching with the filter.- Specified by:
nextBlockin interfaceBlockIterator<Long>- Returns:
- next block local Id or null if no more block localIds
- Throws:
IOExceptionNoSuchElementException
-
hasNext
Description copied from interface:BlockIteratorThis checks if iterator has next element. If it has returns true, otherwise false.- Specified by:
hasNextin interfaceBlockIterator<Long>- Returns:
- boolean
- Throws:
IOException
-
seekToFirst
public void seekToFirst()Description copied from interface:BlockIteratorSeek to first entry.- Specified by:
seekToFirstin interfaceBlockIterator<Long>
-
seekToLast
public void seekToLast()Description copied from interface:BlockIteratorSeek to last entry.- Specified by:
seekToLastin interfaceBlockIterator<Long>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-