Documentation
¶
Index ¶
- type EliasFano
- func (ef *EliasFano) Bitsize() uint64
- func (ef *EliasFano) Compress(elems []uint64)
- func (ef *EliasFano) Info()
- func (ef *EliasFano) Move(position uint64) (uint64, error)
- func (ef *EliasFano) Next() (uint64, error)
- func (ef *EliasFano) Position() uint64
- func (ef *EliasFano) Reset()
- func (ef *EliasFano) Size() uint64
- func (ef *EliasFano) Value() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EliasFano ¶
type EliasFano struct {
// contains filtered or unexported fields
}
EliasFano codec structure
func (*EliasFano) Bitsize ¶
Bitsize returns the size of the internal bitvector.
func (*EliasFano) Compress ¶
Compress a monotone increasing array of positive integers. It sets the position at the beginning.
func (*EliasFano) Info ¶
func (ef *EliasFano) Info()
Info prints info regarding the EliasFano codec.
func (*EliasFano) Move ¶
Move the internal iterator to the given position and returns a value or an error.
func (*EliasFano) Next ¶
Next moves the internal iterator to the next position and returns a value or an error.
func (*EliasFano) Position ¶
Position return the current position of the internal iterator.
func (*EliasFano) Reset ¶
func (ef *EliasFano) Reset()
Reset moves the internal iterator to the beginning.
func (*EliasFano) Size ¶
Size returns the number of elements encoded.
Click to show internal directories.
Click to hide internal directories.