bitmap

package
v0.0.0-...-5f207f6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoarBitmap

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

RoarBitmap implements storage as a roaring bitmap in memory

func (*RoarBitmap) AddPassport

func (sb *RoarBitmap) AddPassport(series uint16, number uint32) (bool, error)

AddPassport adds passport to storage

func (*RoarBitmap) CheckPassport

func (sb *RoarBitmap) CheckPassport(series uint16, number uint32) (bool, error)

CheckPassport checks do passport exist in the storage if exists then true will be returned

func (*RoarBitmap) ImportData

func (sb *RoarBitmap) ImportData(fileName string) error

ImportData return error because there is no standart import

func (*RoarBitmap) Init

func (sb *RoarBitmap) Init() error

Init initialize internal data

type SparseBitmap

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

SparseBitmap implements storage as a sparse bitmap in memory

it require 9999 * (999999/64) * 8 ~ 1.25 Gb

func (*SparseBitmap) AddPassport

func (sb *SparseBitmap) AddPassport(series uint16, number uint32) (bool, error)

AddPassport adds passport to storage

func (*SparseBitmap) CheckPassport

func (sb *SparseBitmap) CheckPassport(series uint16, number uint32) (bool, error)

CheckPassport checks do passport exist in the storage if exists then true will be returned

func (*SparseBitmap) ImportData

func (sb *SparseBitmap) ImportData(fileName string) error

ImportData return error because there is no standart import

func (*SparseBitmap) Init

func (sb *SparseBitmap) Init() error

Init initialize internal data matrix BitmapLengthNumber(rows) x BitmapLengthSeries (cols)

Jump to

Keyboard shortcuts

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