|
cuSBF
|
#include <cstddef>#include <cstdint>Go to the source code of this file.
Functions | |
| void * | superbloom_create (uint16_t k, uint16_t m, uint16_t s, size_t n_hashes, uint8_t bit_vector_size_exponent, uint8_t block_size_exponent) |
| Creates a SuperBloom filter with the given configuration. | |
| int64_t | superbloom_insert_sequence (void *handle, const uint8_t *seq, size_t len) |
| Inserts a raw DNA sequence into the filter (mutable mode). | |
| int64_t | superbloom_insert_fastx_path (void *handle, const char *path) |
| Inserts every FASTA/FASTQ record in a file into the filter (mutable mode). | |
| int64_t | superbloom_query_sequence (const void *handle, const uint8_t *seq, size_t len) |
| Queries a raw DNA sequence (freezes the filter first if needed). | |
| int64_t | superbloom_query_fastx_path (const void *handle, const char *path) |
| Queries every FASTA/FASTQ record in a file (freezes first if needed). | |
| int32_t | superbloom_freeze (const void *handle) |
| Freezes the filter for query-only access. | |
| int32_t | superbloom_set_threads (void *handle, size_t n) |
| Sets the Rayon thread-pool size (call before insert/query). | |
| uint64_t | superbloom_filter_bits (const void *handle) |
Total filter bits (2^bit_vector_size_exponent from create). | |
| void | superbloom_destroy (void *handle) |
| Destroys a handle from superbloom_create. | |
| void * superbloom_create | ( | uint16_t | k, |
| uint16_t | m, | ||
| uint16_t | s, | ||
| size_t | n_hashes, | ||
| uint8_t | bit_vector_size_exponent, | ||
| uint8_t | block_size_exponent | ||
| ) |
Creates a SuperBloom filter with the given configuration.
NULL on failure. | void superbloom_destroy | ( | void * | handle | ) |
Destroys a handle from superbloom_create.
| uint64_t superbloom_filter_bits | ( | const void * | handle | ) |
Total filter bits (2^bit_vector_size_exponent from create).
| int32_t superbloom_freeze | ( | const void * | handle | ) |
Freezes the filter for query-only access.
0 on success, -1 on error. | int64_t superbloom_insert_fastx_path | ( | void * | handle, |
| const char * | path | ||
| ) |
Inserts every FASTA/FASTQ record in a file into the filter (mutable mode).
-1 on error. | int64_t superbloom_insert_sequence | ( | void * | handle, |
| const uint8_t * | seq, | ||
| size_t | len | ||
| ) |
Inserts a raw DNA sequence into the filter (mutable mode).
-1 on error. | int64_t superbloom_query_fastx_path | ( | const void * | handle, |
| const char * | path | ||
| ) |
Queries every FASTA/FASTQ record in a file (freezes first if needed).
-1 on error. | int64_t superbloom_query_sequence | ( | const void * | handle, |
| const uint8_t * | seq, | ||
| size_t | len | ||
| ) |
Queries a raw DNA sequence (freezes the filter first if needed).
-1 on error. | int32_t superbloom_set_threads | ( | void * | handle, |
| size_t | n | ||
| ) |
Sets the Rayon thread-pool size (call before insert/query).
0 on success, -1 on error.