Documentation ¶
Index ¶
- type DoubleEliasFano
- func (ef *DoubleEliasFano) Build(cumKeys []uint64, position []uint64)
- func (ef *DoubleEliasFano) Data() []uint64
- func (ef *DoubleEliasFano) Get2(i uint64) (cumKeys, position uint64)
- func (ef *DoubleEliasFano) Get3(i uint64) (cumKeys, cumKeysNext, position uint64)
- func (ef *DoubleEliasFano) Read(r []byte) int
- func (ef *DoubleEliasFano) Write(w io.Writer) error
- type EliasFano
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleEliasFano ¶
type DoubleEliasFano struct {
// contains filtered or unexported fields
}
DoubleEliasFano can be used to encode two monotone sequences it is called "double" because the lower bits array contains two sequences interleaved
func (*DoubleEliasFano) Build ¶
func (ef *DoubleEliasFano) Build(cumKeys []uint64, position []uint64)
Build construct double Elias Fano index for two given sequences
func (*DoubleEliasFano) Data ¶
func (ef *DoubleEliasFano) Data() []uint64
Data returns binary representation of double Ellias-Fano index that has been built
func (*DoubleEliasFano) Get2 ¶
func (ef *DoubleEliasFano) Get2(i uint64) (cumKeys, position uint64)
func (*DoubleEliasFano) Get3 ¶
func (ef *DoubleEliasFano) Get3(i uint64) (cumKeys, cumKeysNext, position uint64)
func (*DoubleEliasFano) Read ¶
func (ef *DoubleEliasFano) Read(r []byte) int
Read inputs the state of golomb rice encoding from a reader s
type EliasFano ¶
type EliasFano struct {
// contains filtered or unexported fields
}
EliasFano can be used to encode one monotone sequence
func NewEliasFano ¶
func ReadEliasFano ¶
Read inputs the state of golomb rice encoding from a reader s
Click to show internal directories.
Click to hide internal directories.