public class SignatureIO extends Object
| Constructor and Description |
|---|
SignatureIO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadSignatures(String path,
FileSystem fs,
Signature[] signatures)
Loads an entire collection of signatures into an array.
|
static void |
writeSignatures(String outputPath,
FileSystem fs,
RetrievalEnvironment env,
String spamScoresPath,
int bitsPerElement,
int nbHash)
Creates Signatures and writes them to disk.
|
public static void loadSignatures(String path, FileSystem fs, Signature[] signatures) throws IOException
path - Path to the root of the postings listfs - File systemsignatures - Array of Signature to be initialized.IOExceptionpublic static void writeSignatures(String outputPath, FileSystem fs, RetrievalEnvironment env, String spamScoresPath, int bitsPerElement, int nbHash) throws IOException
outputPath - Root path to store the output in.fs - File systemenv - Retireval EnvironmentspamScoresPath - Path to spam/quality scoresbitsPerElement - Number of bits dedicated to one elementnbHash - Number of hash functionsIOException