Computes a hash value of a string using a randomly generated seed and
outputs it in hex.
This class should only be used for hashing algorithms that accept a seed
(murmur3-32, murmur3-128 and sip24).
It allows you to generate a well-mixed sequence of values, unpredictable
for every run, without relying on the random number generator for each
record. The seed is generated by the front end (i.e. when you launch your
script) and so is identical for every task.
See also @Hasher
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc
Hook method, called once the input and output schema are prepared.
Subclasses may override to set properties on the front end (i.e. at script
run time) that may be played with later (e.g. at execution time).
Child classes must (a) call super.onReady(in_schema, out_schema) so
that the hook chains, and (b) not mess with the schema.