csa

package
v0.0.0-...-74e4a0d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EofMarker = 100000
)

Variables

This section is empty.

Functions

func NewSuffixArrayX

func NewSuffixArrayX(str string) *suffixarrayx

Constructor

func SetTo

func SetTo(b *roaring.Bitmap, i uint32, value bool)

Types

type CompressedText

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

EliasFano codec structure

func NewEF

func NewEF(universe uint64, n uint64) *CompressedText

New creates a new empty EliasFano object

func (*CompressedText) Bitsize

func (ef *CompressedText) Bitsize() uint64

Bitsize returns the size of the internal bitvector.

func (*CompressedText) Compress

func (ef *CompressedText) Compress(elems []uint64)

Compress a monotone increasing array of positive integers. It sets the position at the beginning.

func (*CompressedText) Info

func (ef *CompressedText) Info()

Info prints info regarding the EliasFano codec.

func (*CompressedText) Next

func (ef *CompressedText) Next() (uint64, error)

Next moves the internal iterator to the next position and returns a value or an error.

func (*CompressedText) Position

func (ef *CompressedText) Position() uint64

Position return the current position of the internal iterator.

func (*CompressedText) Reset

func (ef *CompressedText) Reset()

Reset moves the internal iterator to the beginning.

func (*CompressedText) Size

func (ef *CompressedText) Size() uint64

Size returns the number of elements encoded.

func (*CompressedText) Value

func (ef *CompressedText) Value() uint64

Value returns the value of the current element.

type Csa

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

Jump to

Keyboard shortcuts

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