Package alluxio.stress
Class CachingBlockMasterClient.CachingBlockMapIterator
- java.lang.Object
-
- alluxio.worker.block.BlockMapIterator
-
- alluxio.stress.CachingBlockMasterClient.CachingBlockMapIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.List<alluxio.grpc.LocationBlockIdListEntry>>
- Enclosing class:
- CachingBlockMasterClient
public static class CachingBlockMasterClient.CachingBlockMapIterator extends alluxio.worker.block.BlockMapIteratorPre-generate the list so the RPC execution time does not include the conversion time.
-
-
Constructor Summary
Constructors Constructor Description CachingBlockMapIterator(java.util.Map<alluxio.worker.block.BlockStoreLocation,java.util.List<java.lang.Long>> blockLocationMap, alluxio.conf.AlluxioConfiguration conf)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.util.List<alluxio.grpc.LocationBlockIdListEntry>next()
-
-
-
Constructor Detail
-
CachingBlockMapIterator
public CachingBlockMapIterator(java.util.Map<alluxio.worker.block.BlockStoreLocation,java.util.List<java.lang.Long>> blockLocationMap, alluxio.conf.AlluxioConfiguration conf)Constructor.- Parameters:
blockLocationMap- the block lists of each locationconf- configuration properties
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.util.List<alluxio.grpc.LocationBlockIdListEntry>>- Overrides:
hasNextin classalluxio.worker.block.BlockMapIterator
-
next
public java.util.List<alluxio.grpc.LocationBlockIdListEntry> next()
- Specified by:
nextin interfacejava.util.Iterator<java.util.List<alluxio.grpc.LocationBlockIdListEntry>>- Overrides:
nextin classalluxio.worker.block.BlockMapIterator
-
-