implemented map reduce vertex interface