dimension

package
v0.37.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dimension

type Dimension struct {

	// keys are sorted
	Keys []Key
	// contains filtered or unexported fields
}

func Deserialize

func Deserialize(r io.Reader) (*Dimension, error)

func FromBytes

func FromBytes(p []byte) (*Dimension, error)

func New

func New() *Dimension

func (*Dimension) Bytes

func (s *Dimension) Bytes() ([]byte, error)

func (*Dimension) Delete added in v0.0.33

func (d *Dimension) Delete(key Key)

func (*Dimension) Insert

func (d *Dimension) Insert(key Key)

func (*Dimension) Serialize

func (s *Dimension) Serialize(w io.Writer) error

type Key added in v0.0.33

type Key []byte

func AndNot added in v0.0.37

func AndNot(a, b *Dimension) []Key

TODO: rework

func Intersection

func Intersection(input ...*Dimension) []Key

finds keys that are present in all dimensions

func Union added in v0.0.33

func Union(input ...*Dimension) []Key

TODO: we need to take advantage of the fact that these are sorted arrays Current implementation might be taking too much memory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL