Documentation ¶
Index ¶
- type MultisetHash
- func (h *MultisetHash) Difference(other *MultisetHash)
- func (h *MultisetHash) Insert(p *ristretto.Point)
- func (h *MultisetHash) InsertAll(ps []*ristretto.Point)
- func (h *MultisetHash) Remove(p *ristretto.Point)
- func (h *MultisetHash) RemoveAll(ps []*ristretto.Point)
- func (h *MultisetHash) String() string
- func (h *MultisetHash) Union(other *MultisetHash)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultisetHash ¶
type MultisetHash struct {
// contains filtered or unexported fields
}
MultisetHash is a multiset hash based on ECMH implementated using ristretto points.
func NewMultisetHash ¶
func NewMultisetHash() *MultisetHash
NewMultisetHash creates a new multiset hash.
func (*MultisetHash) Difference ¶
func (h *MultisetHash) Difference(other *MultisetHash)
Difference computes the diff between two multisets.
func (*MultisetHash) Insert ¶
func (h *MultisetHash) Insert(p *ristretto.Point)
Insert inserts a new item (point) into the multiset hash.
func (*MultisetHash) InsertAll ¶
func (h *MultisetHash) InsertAll(ps []*ristretto.Point)
InsertAll inserts all items (points) into the multiset hash.
func (*MultisetHash) Remove ¶
func (h *MultisetHash) Remove(p *ristretto.Point)
Remove removes an item (point) from the multiset hash.
func (*MultisetHash) RemoveAll ¶
func (h *MultisetHash) RemoveAll(ps []*ristretto.Point)
RemoveAll removes all items (points) from the multiset hash.
func (*MultisetHash) String ¶
func (h *MultisetHash) String() string
String returns the string representation of the multiset hash.
func (*MultisetHash) Union ¶
func (h *MultisetHash) Union(other *MultisetHash)
Union unions two multisets.
Click to show internal directories.
Click to hide internal directories.