public class Bloom extends FilterFunc
BloomFilter
.EvalFunc.SchemaType
Modifier and Type | Field and Description |
---|---|
org.apache.hadoop.util.bloom.BloomFilter |
filter |
log, pigLogger, reporter, returnType
Modifier and Type | Method and Description |
---|---|
Boolean |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
List<String> |
getCacheFiles()
Allow a UDF to specify a list of hdfs files it would like placed in the distributed
cache.
|
void |
setFilter(DataByteArray dba)
For testing only, do not use directly.
|
finish
allowCompileTimeCalculation, getArgToFuncMapping, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public Bloom(String filename)
filename
- file containing the serialized Bloom filterpublic Boolean exec(Tuple input) throws IOException
EvalFunc
exec
in class EvalFunc<Boolean>
input
- the Tuple to be processed.IOException
public List<String> getCacheFiles()
EvalFunc
getCacheFiles
in class EvalFunc<Boolean>
public void setFilter(DataByteArray dba) throws IOException
IOException
Copyright © 2007-2012 The Apache Software Foundation