| 504 | } |
| 505 | |
| 506 | static inline string |
| 507 | bloomTypeToStr(const BloomFilterType type) |
| 508 | { |
| 509 | assert(type != BT_UNKNOWN); |
| 510 | if (type == BT_KONNECTOR) { |
| 511 | return string("konnector"); |
| 512 | } else if (type == BT_ROLLING_HASH) { |
| 513 | return string("rolling-hash"); |
| 514 | } else { |
| 515 | assert(type == BT_COUNTING); |
| 516 | return string("counting"); |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | /** Build a konnector-style Bloom filter. */ |
| 521 |