Git Product home page Git Product logo

tulip's Introduction

tulip - Simple stable bloomfilter web service

A simple go web service implementing SBF

Stable Learned Bloom Filters for Data Streams

More about setting filter values: https://hur.st/bloomfilter/

Usage

tulip -port 8080 -address 127.0.0.1 -state filterstate.json

Methods

POST

New

Create a new filter named name

  • filtersize number of cells in filter - m
  • hashfunctions number of hash functions - k
  • decay number of random deletes before insert
  • max max cell value
/bloom/new/<name>/<filtersize>/<hashfunctions>/<decay>/<max>

Add

Add a single value to filter. Value kan be anything, will be hashed k times with murmur3

/bloom/add/<name>/<value>

AddIfNotSet

Add single value to filter if value not exists in filter. Will not run random delete if value exists.

/bloom/addifnotset/<name>/<value>

Poster

Add multiple values to filter

/bloom/poster/<name>

Eg. filename.txt

value1
value2
value3
curl -X POST http://127.0.0.1:8080/bloom/poster/filtername --data-binary @filename.txt

Reset

Set all values in filter to zero

/bloom/reset/<name>

Destroy

Remove filter

/bloom/destroy/<name>

GET

Test

Check if value is present in filter

/bloom/test/<value>

List

List filters

/bloom/list

Info

Get info about filter

/bloom/info/<name>

Debug

Get debug info about filter

/bloom/debug/<name>

Save

Force saving of filterstate to disk

/bloom/save

Load

Force reload of filterstate from disk

/bloom/load

tulip's People

Contributors

espegro avatar

Stargazers

Alexandre Dulaunoy avatar Jean-Louis Huynen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.