UDFs for Uniba-Hive project