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.
|
finish
allowCompileTimeCalculation, getArgToFuncMapping, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public Bloom(java.lang.String filename)
filename
- file containing the serialized Bloom filterpublic java.lang.Boolean exec(Tuple input) throws java.io.IOException
EvalFunc
public java.util.List<java.lang.String> getCacheFiles()
EvalFunc
getCacheFiles
in class EvalFunc<java.lang.Boolean>
public void setFilter(DataByteArray dba) throws java.io.IOException
java.io.IOException
Copyright © 2007-2012 The Apache Software Foundation