Java Map Reduce Codes (KT)