public class BlockMapIterator extends Object implements Iterator<List<LocationBlockIdListEntry>>
LocationBlockIdListEntry
which consists of
blocks for one RegisterWorkerPRequest
.
The number of blocks included in one iteration is specified by
PropertyKey.WORKER_REGISTER_STREAM_BATCH_SIZE
.Constructor and Description |
---|
BlockMapIterator(Map<BlockStoreLocation,List<Long>> blockLocationMap)
Constructor.
|
BlockMapIterator(Map<BlockStoreLocation,List<Long>> blockLocationMap,
AlluxioConfiguration conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBatchCount()
Gets the number of batches.
|
boolean |
hasNext() |
List<LocationBlockIdListEntry> |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public BlockMapIterator(Map<BlockStoreLocation,List<Long>> blockLocationMap)
blockLocationMap
- the block lists for each locationpublic BlockMapIterator(Map<BlockStoreLocation,List<Long>> blockLocationMap, AlluxioConfiguration conf)
blockLocationMap
- the block lists for each locationconf
- configuration propertiespublic boolean hasNext()
hasNext
in interface Iterator<List<LocationBlockIdListEntry>>
public List<LocationBlockIdListEntry> next()
next
in interface Iterator<List<LocationBlockIdListEntry>>
public int getBatchCount()
Copyright © 2023. All Rights Reserved.