Awesome Go

go-ef

CategoryData Structures and Algorithms
SubcategoryBit-packing and Compression
Stars0

A Go implementation of the Elias-Fano encoding

About go-ef

go-ef

A Go implementation of the Elias-Fano encoding

Build Status GoDoc Go Report Card cover.run go

Example

package main
import (
    "fmt"
    "github.com/amallia/go-ef"
    "os"
)

func main() {
    array := []uint64{1,5,10}
    size := len(array)
    max := array[size-1]
    obj := ef.New(max, size)

    obj.Compress(array)

    v, err := obj.Next()
    if err != nil {
        fmt.Println(err)
        os.Exit(1)
    }
    fmt.Println(v) // 1

    obj.Next()
    fmt.Println(obj.Value()) // 5
}

Frequently Asked Questions

What is go-ef?

go-ef is a Data Structures and Algorithms library for the Go programming language. A Go implementation of the Elias-Fano encoding

How do I install go-ef?

Install go-ef with the Go module system using `go get amallia/go-ef`. Check the repository for the current installation instructions.

What category does go-ef belong to?

go-ef is listed under Data Structures and Algorithms, specifically Bit-packing and Compression.

← Back to Bit-packing and Compression