pilosa

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIterator

func NewIterator(iter *roaring.Iterator) postings.Iterator

NewIterator returns a postings.Iterator wrapping a pilosa roaring.Iterator.

func Unmarshal

func Unmarshal(data []byte) (postings.List, error)

Unmarshal unmarshals the provided bytes into a postings.List.

Types

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder helps serialize a Pilosa RoaringBitmap

func NewEncoder

func NewEncoder() *Encoder

NewEncoder returns a new Encoder.

func (*Encoder) Encode

func (e *Encoder) Encode(pl postings.List) ([]byte, error)

Encode encodes the provided postings list in serialized form. The bytes returned are invalidate on a subsequent call to Encode(), or Reset().

func (*Encoder) Reset

func (e *Encoder) Reset()

Reset resets the internal state of the encoder to allow for re-use.

Jump to

Keyboard shortcuts

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