Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - gmcabrita/bloomex: :hibiscus: A pure Elixir implementation of Scalable Bloom Filters

:hibiscus: A pure Elixir implementation of Scalable Bloom Filters - gmcabrita/bloomex

Visit SiteGitHub - gmcabrita/bloomex: :hibiscus: A pure Elixir implementation of Scalable Bloom Filters

GitHub - gmcabrita/bloomex: :hibiscus: A pure Elixir implementation of Scalable Bloom Filters

:hibiscus: A pure Elixir implementation of Scalable Bloom Filters - gmcabrita/bloomex

Powered by 0x5a.live ๐Ÿ’—

Bloomex

Build Status Coverage Status Hex docs Hex Version License

Bloomex is a pure Elixir implementation of Scalable Bloom Filters.

Usage

Add Bloomex as a dependency in your mix.exs file.

def deps do
  [{:bloomex, "~> 1.0"}]
end

When you are done, run mix deps.get in your shell to fetch and compile Bloomex.

Examples

iex> bf = Bloomex.scalable(1000, 0.1, 0.1, 2)
%Bloomex.ScalableBloom...

iex> bf = Bloomex.add(bf, 5)
%Bloomex.ScalableBloom...

iex> Bloomex.member?(bf, 5)
true

iex> bf = Bloomex.add(bf, 100)
%Bloomex.ScalableBloom...

iex> Bloomex.member?(bf, 100)
true

iex> Bloomex.member?(bf, 105)
false

You can also pass in a hashing function to be used by the Bloom filter when creating one.

(assuming we have Murmur installed as a dependency)

iex> bf = Bloomex.scalable(1000, 0.1, 0.1, 2, &Murmur.hash_x86_128/1))
%Bloomex.ScalableBloom...

iex> bf = Bloomex.add(bf, 5)
%Bloomex.ScalableBloom...

iex> Bloomex.member?(bf, 5)
true

iex> bf = Bloomex.add(bf, 100)
%Bloomex.ScalableBloom...

iex> Bloomex.member?(bf, 100)
true

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.