sdbf_set class
#include <sdbf_set.h>
List of all members.
Public Member Functions |
| | sdbf_set () |
| | creates blank sdbf_set
|
| | sdbf_set (bloom_filter *index) |
| | creates blank sdbf_set with index
|
| | sdbf_set (const char *fname) |
| | loads an sdbf_set from a file
|
|
| ~sdbf_set () |
| | destructor
|
| class sdbf * | at (uint32_t pos) |
| | accessor method for individual hashes
|
| void | add (class sdbf *hash) |
| | adds a single hash to this set
|
| void | add (sdbf_set *hashset) |
| | adds the items in another set to this set
|
| uint64_t | size () |
| | Returns the number of sdbfs in this set.
|
| uint64_t | input_size () |
| | Computes the data size of this set.
|
| uint64_t | filter_count () |
| void | compare_all (int32_t threshold) |
| | Compares all objects in a set to each other.
|
| std::string | compare_all_quiet (int32_t threshold, int32_t thread_count) |
|
void | compare_to (sdbf_set *other, int32_t threshold, uint32_t sample_size) |
| | queries one set for the contents of another
|
| std::string | compare_to_quiet (sdbf_set *other, int32_t threshold, uint32_t sample_size, int32_t thread_count) |
| std::string | to_string () const |
| | return a string which contains the output-encoded sdbfs in this set
|
| std::string | index_results () const |
| | return a string which contains the results of this set's index seraching
|
| int | empty () |
| | is this empty?
|
| std::string | name () const |
| | retrieve name of set
|
| void | set_name (std::string name) |
| | name this set.
|
| void | set_separator (char sep) |
| | change output separator
|
| void | vector_init () |
| | setup bloom filter vector
|
Public Attributes |
|
class bloom_filter * | index |
| | index for this set
|
std::vector< class
bloom_filter * > * | bf_vector |
| | giant bloom filter vector for this set
|
Friends |
|
std::ostream & | operator<< (std::ostream &os, const sdbf_set &s) |
| | output operator
|
|
std::ostream & | operator<< (std::ostream &os, const sdbf_set *s) |
| | output operator
|
Constructor & Destructor Documentation
Creates empty sdbf_set with an index
- Parameters:
-
| index | to insert new items into |
Loads all sdbfs from a file into a new set
- Parameters:
-
Member Function Documentation
Adds a single hash to this set
- Parameters:
-
| hash | an existing sdbf hash |
Adds all items in another set to this set
- Parameters:
-
| hashset | sdbf_set* to be added |
Accessor method for a single sdbf* in this set
- Parameters:
-
- Returns:
- sdbf* or NULL if position not valid
Compares each sdbf object in target to every other sdbf object in target and prints the results to stdout
- Parameters:
-
| threshold | output threshold, defaults to 1 |
Compares each sdbf object in target to every other sdbf object in target and returns the results as a list stored in a string
- Parameters:
-
| threshold | output threshold, defaults to 1 |
| thread_count | processor threads to use, 0 for all available |
- Returns:
- std::string result listing
Compares each sdbf object in other to each object in this set, and returns the results as a list stored in a string.
- Parameters:
-
| other | set to compare to |
| threshold | output threshold, defaults to 1 |
| sample_size | size of bloom filter sample. send 0 for no sampling |
| thread_count | processor threads to use, 0 for all available |
- Returns:
- std::string result listing
Checks empty status of container
- Returns:
- int 1 if empty, 0 if non-empty
Generates a string representing the indexing results of this set
Computes the data size of this set, from the input_size() values of its' content sdbf hashes.
- Returns:
- uint64_t total of input sizes
Retrieve name of this set
- Returns:
- string name
Change name of this set
- Parameters:
-
Change comparison output separator
- Parameters:
-
| sep | charactor separator for output |
Number of items in this set
- Returns:
- uint64_t number of items in this set
Generates a string which contains the output-encoded sdbfs in this set
- Returns:
- std::string containing sdbfs.
Sets up bloom filter vector. Should also be called by server process when done hashing to a set
The documentation for this class was generated from the following files: