public class MurmurHash3
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Constructor and Description |
---|
MurmurHash3() |
Modifier and Type | Method and Description |
---|---|
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple input)
Top Level Exec Function.
|
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
The output consists of two longs, or 128 bits, plus the result of the modulo division if
specified.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple input) throws IOException
This method accepts an object to be hashed and returns a Hash Result Tuple.
Hash Input TupleAny other input tuple will throw an exception!
Hash Result Tupleexec
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
input
- Hash Input Tuple. If null or empty exec returns null.IOException
public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.