CDAP 544 - MetricsTable API Put to use Long instead of byte array

https://issues.cask.co/browse/CDAP-544
Same here, you might want to make this Function static instead.