草庐IT

hadoop - Pig 中的 Udfs 共享上下文

我在弄清楚下面这些行的实际含义时遇到了一个问题:Whenusingtheobjectintheexecmethod,keepinmindthatanychangesmadetothereturnedPropertieswillnotbetransmittedtootherinstancesoftheUDFonthebackend,unlessyouhappentohaveanotherinstanceofthesameUDFinthesametask这些是书编程pig(第131页)中的行,为了让您了解上下文,所有这些都与Pig中的UDF和执行上下文有关,同一UDF的所有实例都可以共享来