Dear Wiki user, You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by OlgaN: http://wiki.apache.org/pig/UDFManual ------------------------------------------------------------------------------ } }}} - Lines 10 and 11 create tuple and bag factories respectively. (Factory is a class that creates objects of a particular type. For more details, see the definition of http://en.wikipedia.org/wiki/Factory_pattern][a factory pattern. The factory class itself is implemented as a singleton to guarantee that the same factory is used everywhere. For more details see the definition of http://en.wikipedia.org/wiki/Singleton_pattern][a singleton pattern.) + Lines 12-13 create tuple and bag factories respectively. (Factory is a class that creates objects of a particular type. For more details, see the definition of http://en.wikipedia.org/wiki/Factory_pattern][a factory pattern. The factory class itself is implemented as a singleton to guarantee that the same factory is used everywhere. For more details see the definition of http://en.wikipedia.org/wiki/Singleton_pattern][a singleton pattern.) - Line 14 creates a bag using the factory that will contain the output of the function. Line 20 creates a tuple for each token and adds it to the output bag. + Line 17 creates a bag using the factory that will contain the output of the function. Line 21 creates a tuple for each token and adds it to the output bag. [[Anchor(Schema)]] === Schema ===