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| Constructor and Description |
|---|
Bloom(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
java.util.List<java.lang.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.
|
finishallowCompileTimeCalculation, getArgToFuncMapping, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic Bloom(java.lang.String filename)
filename - file containing the serialized Bloom filterpublic java.lang.Boolean exec(Tuple input) throws java.io.IOException
EvalFuncpublic java.util.List<java.lang.String> getCacheFiles()
EvalFuncgetCacheFiles in class EvalFunc<java.lang.Boolean>public void setFilter(DataByteArray dba) throws java.io.IOException
java.io.IOExceptionCopyright © 2007-2012 The Apache Software Foundation