int computeNumSlotsPerMap ( long slotSizePerMap ) { if ( ( slotSizePerMap == DISABLED_MEMORY_LIMIT ) || ( getMemoryForMapTask ( ) == DISABLED_MEMORY_LIMIT ) ) { return 1 ; } return ( int ) ( Math . ceil ( ( float ) getMemoryForMapTask ( ) / ( float ) slotSizePerMap ) ) ; }
Compute the number of slots required to run a single map task - attempt of this job .