| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_FILE
Filename where the configuration parameters are stored.
|
| Constructor and Description |
|---|
BloomConfig(int nbDocuments,
int nbTerms,
int nbHash,
int bitsPerElement)
Creates a new configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsPerElement() |
int |
getDocumentCount() |
int |
getHashCount() |
int |
getIdentityHashThreshold() |
int |
getTermCount() |
void |
readFields(DataInput in) |
static BloomConfig |
readInstance(DataInput in)
Reads and returns an instance of the configuration object.
|
void |
write(DataOutput out) |
public static final String CONFIG_FILE
public BloomConfig(int nbDocuments,
int nbTerms,
int nbHash,
int bitsPerElement)
nbDocuments - Number of documents in the collectionnbTerms - Number of unique terms in the collectionnbHash - Number of Hash functionsbitsPerElement - Number of bit positions per elementpublic int getBitsPerElement()
public int getDocumentCount()
public int getHashCount()
public int getIdentityHashThreshold()
public int getTermCount()
public void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic static BloomConfig readInstance(DataInput in) throws IOException
in - DataInput streamIOExceptionpublic void write(DataOutput out) throws IOException
write in interface WritableIOException