Class 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.BlockMapIterator
    Pre-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
      boolean hasNext()  
      java.util.List<alluxio.grpc.LocationBlockIdListEntry> next()  
      • Methods inherited from class alluxio.worker.block.BlockMapIterator

        getBatchCount
      • 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
    • 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 location
        conf - configuration properties
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.util.List<alluxio.grpc.LocationBlockIdListEntry>>
        Overrides:
        hasNext in class alluxio.worker.block.BlockMapIterator
      • next

        public java.util.List<alluxio.grpc.LocationBlockIdListEntry> next()
        Specified by:
        next in interface java.util.Iterator<java.util.List<alluxio.grpc.LocationBlockIdListEntry>>
        Overrides:
        next in class alluxio.worker.block.BlockMapIterator